I would like to know how I could launch a command line that repeats itself within an interval of 60 seconds of timeout.
Thanks.
|
Full Version: Launch A Command Line That Repeats Itself
Hello,
I would like to know how I could launch a command line that repeats itself within an interval of 60 seconds of timeout. Thanks.
what do you mean by repeats itself?
Do u mean something like that?
while(1) { command(); Sleep(60000); }
do you mean like site exec program.exe
every 60 seconds something that will do that , automatic executer
yes Dickybob20
i would like to do : site exec del.bat sleep 60 sec site exec del.bat sleep 60 sec ... is it possible ?
i dont remember who it was but someone gave a very good method of a windows built in timer ping -n x localhost x being the number of seconds you want, it is kinda accurate, works very well
this should keep it in an infinite loop EDIT: heres an example
gives output
as you can see, on pinging localhost 60 times, it took about 59 secs
this should be very easy in c , i will make it von vb. post it later
bla.bat
------- starting here------------- dir c:\ sleep 60 bla.bat --------cut here--------------
if u want to make it loop then add it .. like
@echo echo off :10 dir c:\ sleep 60 bla.bat goto 10 Buz
hey i know exactly wt u need look u have to make a batch file in conjuction with external file i have everything here is the code "
now u need a file called sleep.exe and just place it in the same dir with the batch file as u can see in the above example u can sleep for just 5 second then the command "dir c:" will be executed once again , increase the the amount of time as u like download sleep.exe from here Sleep.exe hope this help Best Regards migo
thanks a lot
it's wath i looked for
If you want it in an exe use this:
#include <stdlib.h> #include <windows.h> void main() { while(1) { system("c:\\something.exe"); Sleep(10000); } } just don't forget to put \\ instead of \ in the path.
here's another kind of delay you can use in a batch, this on uses choice.com
TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL ah, good old dos (wel not really, but batch is just as fun)
no problem dude u welcome for the above post if u wanna make choice.com ur own use this ASM code, use the below code with debug command:
wow great one thank you! This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|
||||||||||||||