I'm trying to create a batch script, but if the server doesn't respond the interface asks for an (A)bort, (R)etry and hangs. I've tried every command line parameter I can find and nothing seems to stop it from asking for input. How do I resolve this?
Regards,
Michael
Reply with quote
martin ◆
Site Admin
Joined:
2002-12-10
Posts:
41,517
Location:
Prague, Czechia
Have you tried "option batch on" or "option batch abort"?
Reply with quote
Your idea got me thinking. Yes I did try those and they didn't work. I did find the issue though. My original command was:
c:\progra~1\winscp3\winscp3 user:password@xxx.xxx.xxx.xxx /command "option confirm off" "option batch abort" binary exit /console
The program was trying to connect before executing the option batch command. I changed the command line to
c:\progra~1\winscp3\winscp3 /command "option confirm off" "option batch abort" "open user:password@xxx.xxx.xxx.xxx" binary exit /console
This way I could control the when the open was happening. Thanks for your assistance.
Regards,
Michael
Reply with quote