setting timeout problem
I am trying to manually set the timeout in my script, but can't get it to work.
if I type:
winscp>open username:password@address -timeout=100 -passive=on
then it connects fine, and the timeout is 100 seconds.
But If I try to put this into my script file it fails:
c:\>winscp.com /script="path/to/script.txt"
script.txt:
open username:password@address -timeout=100 -passive=on
command1
command2
Then I get the following error: "The filename, directory name, or volume label syntax is incorrect"
I tried adding it after the /script parameter as /timeout=15 or -timeout=15, but get the same error.
Is there something I am doing wrong?
if I type:
winscp>open username:password@address -timeout=100 -passive=on
then it connects fine, and the timeout is 100 seconds.
But If I try to put this into my script file it fails:
c:\>winscp.com /script="path/to/script.txt"
script.txt:
open username:password@address -timeout=100 -passive=on
command1
command2
Then I get the following error: "The filename, directory name, or volume label syntax is incorrect"
I tried adding it after the /script parameter as /timeout=15 or -timeout=15, but get the same error.
Is there something I am doing wrong?