Re: syntax help
Your syntax is very wrong. There's no
The
Also unless you are using the latest beta release, you should use
/session
switch in WinSCP. You should not open session for scripting using command-line parameter. Use open
command.
The
-nopreservetime
and -nopermissions
switches go after the put
.
Also unless you are using the latest beta release, you should use
option batch abort
and option confirm off
commands:
winscp /command "option batch abort" "option confirm off" "open "%WinSCPSavedSession%" "cd /" "lcd %ProdDriv%\%PSCUpymt%" "put -nopreservetime -nopermissions test.txt" "exit"