Program/Batch FileHey guys:3 I want to ask how do I make a program/batch file that will close one program&open a new one ? In a specific ammount of time.
I don't think you can use timing in a batch file. But to exit a process you could just use taskkill /f /im explorer.exe for example.
Originally Posted by GreenLighting I don't think you can use timing in a batch file. But to exit a process you could just use taskkill /f /im explorer.exe for example. Yes you can, you can do it through the ping command. Code: PING 1.1.1.1 -n 1 -w 60000 > NUL This will ping an invalid IP (1.1.1.1) until it timesout after 60000 milliseconds.
Originally Posted by master131 Yes you can, you can do it through the ping command. Code: PING 1.1.1.1 -n 1 -w 60000 > NUL This will ping an invalid IP (1.1.1.1) until it timesout after 60000 milliseconds. Wow good job man I didn't even know that was possible or it's just getting late for me.
Originally Posted by master131 Yes you can, you can do it through the ping command. Code: PING 1.1.1.1 -n 1 -w 60000 > NUL This will ping an invalid IP (1.1.1.1) until it timesout after 60000 milliseconds. So like how ? Also I can code it myself if you give me some codes;3 also how about it starting a program ? with in the same kind of time ? Thanks alot
Originally Posted by master131 Yes you can, you can do it through the ping command. Code: PING 1.1.1.1 -n 1 -w 60000 > NUL This will ping an invalid IP (1.1.1.1) until it timesout after 60000 milliseconds. why not: Code: PING 127.0.0.1 -n 10 > NUL (pings the own pc 10 seconds (>NUL is just that it doesnt show up ;] )) seems easier
Originally Posted by Paul why not: Code: PING 127.0.0.1 -n 10 > NUL (pings the own pc 10 seconds (>NUL is just that it doesnt show up ;] )) seems easier It's not precise but meh, up to you which method you use.