Created
April 1, 2019 19:10
-
-
Save MartinMiles/7798533833ec60963161ba88f59a4484 to your computer and use it in GitHub Desktop.
Uploads local file to remote FTP from PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$File = "c:\Projects\output.zip" | |
$ftp = "ftp://erad-test-sitecore-615907-single\eradFTP:[email protected]/site/deployments/output.zip" | |
"ftp url: $ftp" | |
$webclient = New-Object System.Net.WebClient | |
#$uri = New-Object System.Uri($ftp) | |
$uri = [uri]::EscapeUriString($ftp) | |
"Uploading $File..." | |
$webclient.UploadFile($uri, $File) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment