I have created a batch file containing WinSCP commands to upload files in different folders. Now, file names and folder name contain blank spaces.
It's showing an error when I'm running the batch file with those files and folders. The upload is successful when there aren't any blank spaces.
Below is the batch command that I'm running:
cd \ cd C:\Program Files\WinSCP winscp.com /command "option echo off" "option batch on" "option confirm off" "open sftp" "put C:\abc\EXCEL\RestaurantAutomation\RestaurantReport_2012120172514\x y Report_P10_0010050075.xls /abc/MG0047/System Generated/x y Report_P10_0010050075.xls" "exit"
The error that I'm getting is:
Cannot create remote file ' /Generated/x y Report_P10_0010050075.xls'. The file path does not exist or is invalid. Error Code:10 Request code:3