Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

rookie19

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.
rookie19

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