Hi, I am using RM's Kaliedos Learning Platform and i would like to know if i can automate file transfers to my personal space (if it works this will go wider than my personal space) using powershell or VB Script. does anyone know how to do this specifically within RM's KLP?
I have found the following code from the web to get powershell to talk to sharepoint which its based on but this doesnt work (possibly destination URL but have tried every combination of URL i can think that would be acceptable) and would like to know if anyone else has done this?
$path = "c:\FilesToUpload"
$destination = "substitute RM's KLP website URL here"
$securePasssword = ConvertTo-SecureString "substitute password here" -AsPlainText -Force;
$credentials = New-Object System.Management.Automation.PSCredential ("substitute username here", $securePasssword);
$webclient = New-Object System.Net.WebClient; $webclient.Credentials = $credentials;
$webclient.Credentials = $credentials;
Get-ChildItem $path | Where-Object {$_.Length -gt 0} | ForEach-Object { $webclient.UploadFile($destination + "/" + $_.Name, "PUT", $_.FullName); Remove-Item $_.FullName -Force };
Any help would be appreciated.
Thanks
Gavin.