QuestionProgram/Batch File

Posts 19 of 9 · Page 1 of 1
Program/Batch File
Hey 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.
Quote Originally Posted by DarkByte7 View Post
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.
Quote Originally Posted by master131 View Post
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.
Quote Originally Posted by master131 View Post
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
Quote Originally Posted by master131 View Post
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
Quote Originally Posted by Paul View Post


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.
I'm not going to spoonfeed you, try using Google.
Well anyways thanks again;p
Posts 19 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?