Multiple instances of RealTimeSync from BAT file

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

Post by jwalkerbg • 21 Dec 2018, 16:20


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

The file contains something like

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?


User avatar
Posts: 659
Joined: 22 Aug 2012

Post by Plerry • 23 Dec 2018, 16:21

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.