filename with spaces in batchmode
Hi!
I try to send a file to a SSH server in batchmode. The following command I have used:
winscp3.exe sftp://user@server /privatekey=key.ppk /log=logfile.txt /console /command "option batch on" "option confirm off" "option transfer ascii" "cd /transfer-dir" "put %1" "close" "exit"
%1 is a parameter of a batch file. This parameter contains a filename with a path. Sometimes the path contains space characters and the batch doesn't work. The %1 contains also "", but these characters seems not to be in the executed command line. How I can solve that problem?
Thanx
Andre
I try to send a file to a SSH server in batchmode. The following command I have used:
winscp3.exe sftp://user@server /privatekey=key.ppk /log=logfile.txt /console /command "option batch on" "option confirm off" "option transfer ascii" "cd /transfer-dir" "put %1" "close" "exit"
%1 is a parameter of a batch file. This parameter contains a filename with a path. Sometimes the path contains space characters and the batch doesn't work. The %1 contains also "", but these characters seems not to be in the executed command line. How I can solve that problem?
Thanx
Andre