put command in script file
I have a batch file on windows that does a whole lot of commands. Here's a sample of what I'm doing....
"C:\WinSCP\WinSCP.com" /ini=nul /command "open -implicit ftp://XXX:YYY@ZZZ" "lcd C:\Fred" "cd Download" "put ImAfile.csv" "exit"
C:\\Utils\\SomeProgram -t "Fred" -s "Today"
"C:\WinSCP\WinSCP.com" /ini=nul /command "open -implicit ftp://XXX:YYY@ZZZ" "lcd C:\Fred" "cd Download" "put ImANewFile.csv" "exit"
Don't worry so much about the middle command. My problem is the server I connect to every one in a while will timeout. So the command will retry but it's getting the retry from the middle of the second command. So looking at my output - is says:
'ogram' is not recognized as an internal or external command, operable program or batch file.
How do I on a command line make WinSCP automatically send an R (or just automatically retry) ? I see there's the option command but I don't see how I would do that as part of the command line.
TIA - Jeff.
"C:\WinSCP\WinSCP.com" /ini=nul /command "open -implicit ftp://XXX:YYY@ZZZ" "lcd C:\Fred" "cd Download" "put ImAfile.csv" "exit"
C:\\Utils\\SomeProgram -t "Fred" -s "Today"
"C:\WinSCP\WinSCP.com" /ini=nul /command "open -implicit ftp://XXX:YYY@ZZZ" "lcd C:\Fred" "cd Download" "put ImANewFile.csv" "exit"
Don't worry so much about the middle command. My problem is the server I connect to every one in a while will timeout. So the command will retry but it's getting the retry from the middle of the second command. So looking at my output - is says:
'ogram' is not recognized as an internal or external command, operable program or batch file.
How do I on a command line make WinSCP automatically send an R (or just automatically retry) ? I see there's the option command but I don't see how I would do that as part of the command line.
TIA - Jeff.