winscp syntax help

Advertisement

rookie19
Joined:
Posts:
2

winscp syntax help

Can you tell me what I am doing wrong? The code below is not working:

"E:\Program Files\WinSCP\WinSCP.exe"

option batch on
option confirm off

open username@xxx.edu
cd /cygdrive/E/vol1/dev
put e:\Reporting\dir\test_report.txt
close

exit

Reply with quote

Advertisement

rookie19
Joined:
Posts:
2

more information

More information:

How can I combine two .bat files into one?

1. I have a .bat file that has the following syntax:
"E:\Program Files\WinSCP\WinSCP.exe" /script=E:\test folder\test_file.txt

2. The next file is the test_file.txt that has the following syntax:
option batch on
option confirm off

open user@xxx.xx
cd /cygdrive/E/some directory
put e:\some directory\some file*
close

exit

I want to combine the syntax from both files instead of having to run the .bat file that calls to the test_file.

Reply with quote

Advertisement

You can post new topics in this forum