How to open multiple sessions in CMD?
Hi,
I wanted to create a small BAT-Script that opens multiple WinSCP-Sessions with IPs from a txt-file.
I already got to the point where it opens multiple WinSCP windows, but I just want one window with multiple Sessions.
My script so far:
Is there a way to open them in just one window?
br Markus
I wanted to create a small BAT-Script that opens multiple WinSCP-Sessions with IPs from a txt-file.
I already got to the point where it opens multiple WinSCP windows, but I just want one window with multiple Sessions.
My script so far:
set indexSystems=0 set indexKeys=0 for /F "usebackq delims=" %%a in ("C:\IP.txt") do ( set /a indexSystems+=1 set systems[!indexSystems!]=%%a ) for /L %%i in (1,1,%indexSystems%) do ( Start /B WinSCP.exe sftp://root:admin@!systems[%%i]! ) pause
br Markus