wau, this is so great it works
it is so simple but so complicated for me because I don 't know how to program.
Need just one more thing here if you are willing to help.
one more file where it is written how many time is runned myapp.exe, so everytime is runned it add 1 more if it is runned 1 time than in file is 1 if it is runned 3 times than it is 3 in that file, etc.
If batch file found out that it is runned for example more than 3 times it runs nextmyapp.exe and not myapp.exe and delete that counter file to zero.
If nextmyapp.exe is runned more than 3 times it stops to run the whole batch file so it won't happend a loop.