Re: Error handling in a batch file
In this case, the easiest solution is to execute new WinSCP instance for each session:
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Users\??????????\Documents\Backup Test\WinSCP.100.log" /ini=nul ^
/command ^
"lcd ""C:\Users\??????????\Documents\Backup Test""" ^
"open ftp://tridium:??????????@10.203.61.100/" "cd /ffs0/niagara/stations" "get "KPMG_15CSQ_L13_DVD_N"" ^
"exit"
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Users\??????????\Documents\Backup Test\WinSCP.103.log" /ini=nul ^
/command ^
"lcd ""C:\Users\??????????\Documents\Backup Test""" ^
"open ftp://tridium:??????????@10.203.61.103/" "cd /ffs0/niagara/stations" "get "L13_15CSQ_S"" ^
"exit"