Multiple instances of RealTimeSync from BAT file

Discuss new features and functions
Posts: 6
Joined: 29 Nov 2018

jwalkerbg

Hi,

How to start multiple instances of RealTimeSync using batch file (bat) under Windows 10?

The file contains something like

c:
cd \Program Files\FreeFileSync
"C:\Program Files\FreeFileSync\RealTimeSync.exe" e:\util\FFS\rts_1.ffs_real
"C:\Program Files\FreeFileSync\RealTimeSync.exe" e:\util\FFS\rts_2.ffs_real
"C:\Program Files\FreeFileSync\RealTimeSync.exe" e:\util\FFS\rts_3.ffs_real

When executing the batch file it starts the first instance and then waits for it to finish. When I close it interactively, the batch file starts the second and so on.

This is not the case when I start RealTimeSync interactively in a console window. After I execute
"C:\Program Files\FreeFileSync\RealTimeSync.exe" e:\util\FFS\rts_1.ffs_real
RealTimeSync starts and then the command prompt returns and I am able to start the second instance and so on.

What is the difference and how to manage to start RealTimeSync instances using a single batch file?

Ivan
User avatar
Posts: 2248
Joined: 22 Aug 2012

Plerry

That is the way the Windows batch file works; it waits for the previous command to finish.
If don't want the batch file to wait for the previous command to finish, use the batch file START command.