Uploading single file (Whitespaces)
I am attempting to integarte WinSCP into a larger project which will generate a Batch file to execute PGP and FTP commands. WinSCP will be used to execute single file transfer commands using the /command option (See https://winscp.net/eng/docs/script_upload_single_file)
The problem I have is in dealing with whitespaces in either the directory path or file name. Below is the single command line statement to send a file. Since both the Directory and File name contain whitespaces, I get the "File or folder xxxxx Does not Exist" error. I've tried many different options (Single Quotes, double quotes, Brackets) to enclose around the path & filename with no luck.
Your help is appreciated!!! :)
"C:\Program Files\WinSCP\winscp.com" skype@ftp.uppquad.com /command "option confirm off" "put Y:/UQ Feed/Encrypted/RISE GA-Net Units-Daily Report-MTD-20080430.csv.pgp /NAR/" "exit"
The problem I have is in dealing with whitespaces in either the directory path or file name. Below is the single command line statement to send a file. Since both the Directory and File name contain whitespaces, I get the "File or folder xxxxx Does not Exist" error. I've tried many different options (Single Quotes, double quotes, Brackets) to enclose around the path & filename with no luck.
Your help is appreciated!!! :)
"C:\Program Files\WinSCP\winscp.com" skype@ftp.uppquad.com /command "option confirm off" "put Y:/UQ Feed/Encrypted/RISE GA-Net Units-Daily Report-MTD-20080430.csv.pgp /NAR/" "exit"