Music Banter - View Single Post - The Official Computer Tech Support Thread
View Single Post
Old 02-02-2011, 06:47 PM   #800 (permalink)
Dayvan Cowboy
Basscadet
 
Dayvan Cowboy's Avatar
 
Join Date: Jul 2010
Location: Antarctica
Posts: 1,258
Default

Quote:
Originally Posted by Freebase Dali View Post
I haven't done any scripting for a batch file in ages, but I don't remember there being a wait command that ever worked for me.
The way most people end up doing it is to simply to ping your network card using a -n switch with the indicated number of seconds.

So if you want to wait for a period of time immediately after the bat executes, the first line of code you'd put in would be, using 60 seconds as an example:

ping 127.0.0.1 -n 60

Then you'd write your other lines of code afterward.
The only thing is it's going to sit there and ping & reply in the output window, which isn't an issue in itself and doesn't affect anything, but if you're trying to be sneaky, you may want to figure out how to make it so that the bat runs in the background or something, which I'm not sure how to do. You can probably find a tutorial on the web somewhere.
thank you! now I'm able to sit there triumphantly and be proud of myself while I wait for the system files to be deleted.
Dayvan Cowboy is offline   Reply With Quote