On 29.07.2017 20:49, novice wrote:
>> (I know, I can start two batch like this first.cmd & second.cmd, but this
>> situation are when first is already running and you want to run second
>> batch after first and you don't want to cancel first batch).
> I found a solution. This batch work;
> :notfound
> echo call c:\bat\second.cmd
> :eof
Why not just insert a line at the end of the first batch:
if exist token.txt del token.txt & call c:\bat\second.cmd
If you want to run the second batch file, just create the
file token.txt while the first batch is running.