I am trying to copy from one Windows 7 system to another. I want the destination directory to be C:\Windows\Temp
. If I omit the destination directory, it copies the file to the remote computer's home directory for "myuser". Great, but I can't get it to copy to C:\Windows\Temp
. User "myuser" has permission to write to C:\Windows\Temp
. I tried different formats for the destination directory: C:\Windows\Temp\
, /Windows/Temp/
, etc.
Here is the command:
winscp.exe /command "option batch abort" "option confirm off"
"open myuser:mypassword@myhost" "put myfile /Windows/Temp/"
I also tried using the cd
command to set the working directory, but it still would not copy the file:
winscp.exe /command "cd C:\Windows\Temp" "option batch abort" "option confirm off"
"open myuser:mypassword@myhost" "put myfile "
Thanks for any help.