Answer» Hello everyone, i´m building a FLIGHT simulator, and WANTED for the computer to open programs automatically and seguentially, when the computer starts. I´ve created a file that OPENS the programs, but all at once. I need to open FSX.exe FIRST, wait for it to load, then open the Simkits software, and then the Instructor software. So, is there a command where I would open FSX and wait 1 minute for it to load, and open the second file, and so on?
I saw in a website this comand, but cant seem to get it to work .
for /L %%I in (1,1,60) do start "C:\Arquivos de Programa\Mozilla Firefox" firefox.exe
Thank you in advanceI have seen ways to do this in other than batch like C++, but in batch the problem you are probably facing is that until firefox closes does it step to launch the next application right?You COULD use the ping command and set the time it takes for it to load:
ping 1.1.1.1 -n 1 -w 10000 >nul
10000=10 seconds
Good luck, hope it works.would this work as well? ping localhost -n 60 > nul that should do it in one minute increments, create a loop do to more than onceThis thread died in July 2011. apparently so did i but i get the drift, i will move on to another forum so as not to offend your turf
Quote from: skorpio07 on December 15, 2011, 02:44:27 PM apparently so did i but i get the drift, i will move on to another forum so as not to offend your turf
It's nothing about turf. It's about thread necromancy, which is frowned upon by most members of any forum. (unless it's the Original Poster)I agree. Leave a thread alone if the original poster has not come back. On most of the forums I contribute on if a new user posts a question I usually answer back with a feeler question to see if they are going to come back. I don't like wasting my time writing a script if they are never going to come back.
|