Artifact c1eacdc55eb21147ade1bcf6c821e3e59cb810bb6b62cd141cb7eb9b47dd2b13:
- File quick-hard-coded-script-for-.ps1 — part of check-in [15adb3f3ad] at 2018-06-10 14:04:40 on branch trunk — quick hard coded script for uploading a file to an ftp server. (user: unknown size: 500)
# encoding: ascii # api: powershell # title: # description: quick hard coded script for uploading a file to an ftp server. # version: 0.1 # license: CC0 # x-poshcode-id: 5947 # x-archived: 2015-07-31T04:01:23 # # $File = "D:\Dev\somefilename.zip" $ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip" "ftp url: $ftp" $webclient = New-Object System.Net.WebClient $uri = New-Object System.Uri($ftp) "Uploading $File..." $webclient.UploadFile($uri, $File)