Page 1 of 1
[Question] Time Clock
Posted: 02 Nov 2011 16:00
by Ranguna173
I've been using this code for "waiting" time:
Code: Select all
ping localhost -n [seconds here] >tmp
But now I have to write something that will pause for 18000 seconds..
I can't use the previews code because pinging my computer for 18000 seconds would cause my internet connection to, significantly, slow down.
My questions is if there is another way then pinging my computer..
I could ping a website but I just need another way..
Thanks!
Re: [Question] Time Clock
Posted: 02 Nov 2011 16:20
by !k
My questions is if there is another way then pinging my computer..
A mmm... Another way to wait?
Need to create a 60 minutes delay in my DOS script
Re: [Question] Time Clock
Posted: 02 Nov 2011 17:48
by alan_b
Are you sure it impacts the Internet ?
I understood that Ping sent a harmless echo request and the Operating system might retry at 1 second intervals,
but it is only a few bytes sent each second, plenty of bandwidth left for downloading and browsing.
Re: [Question] Time Clock
Posted: 02 Nov 2011 18:13
by Ed Dyreen
'
No external files needed, trick a jeb :
Code: Select all
@if (@X) == (@Y) @goto :Dummy @end/* Enable Jscript comment, must be first line in batch !
call CScript.EXE //NoLogo //e:JScript "%0"
pause
exit
:: Jscript part begins here
::(
*/
WSH.Sleep ( 1000 );
/*
::)
Re: [Question] Time Clock
Posted: 03 Nov 2011 11:16
by Ranguna173
alan_b wrote:Are you sure it impacts the Internet ?
Positive.
A drop from 20KB/s to .4KB/s...
That sure affects internet..
Thanks for the link found out that the best option for "waiting" is, as Ed Dyreen wrote:
Ed Dyreen wrote:'
No external files needed, trick a jeb :
Code: Select all
@if (@X) == (@Y) @goto :Dummy @end/* Enable Jscript comment, must be first line in batch !
call CScript.EXE //NoLogo //e:JScript "%0"
pause
exit
:: Jscript part begins here
::(
*/
WSH.Sleep ( 1000 );
/*
::)
A VBScript.
Thanks!