Read with Formatting | Join TechSpot! (it's free) | Bookmark / Share this



looking for: sleep1.exe

drumtrucker
05-02-2004, 12:17 AM
can't find even by googling.

Trying to do this:


Here's how...
Download a program called "sleep1.exe" from download.com or wherever.
Save it in \windows\system32 .
Create a batch file in \windows\system32 called "ping3.bat" with the following

commands:

@echo off
: pingsite
sleep1 3
ping -n 1 www.whatever_site_you_want.com > nul
goto pingsite

Create a shortcut to this batch file on your desktop, with properties:

Shortcut / Run minimized.

RealBlackStuff
05-02-2004, 03:03 AM
Simple answer: look for sleep.exe without the 1

Ad
05-02-2004, 03:03 AM

Nodsu
05-02-2004, 07:47 AM
You don't need sleep exe for that batch file to work. The same effect can be achieved by:

@echo off
: pingsite
ping -w 3000 -n1 123.123.123.123
ping -n 1 www.whatever_site_you_want.com > nul
goto pingsite

you can replace 123.123.123.123 with any nonexistent but legal IP address.

BTW what is the purpose of this script? Some sort of a keepalive?

gospelmidi
06-29-2004, 01:23 PM
It is for a cellphone connection that goes into a reduced state of responsiveness after 7 seconds of inactivity.

But your batch file is just as good as mine, if not better. There should be a space between "n" and "1". Your timeout line will work without a second ping.

@echo off
: pingsite
ping -w 5000 -n 1 123.123.123.123
goto pingsite

sleep1.exe is not the same file as sleep.exe or sleep88.exe. Strange that it doesn't even appear on webcrawler.

 Top Technology News

 Software Downloads

Copyright © 1998-2008 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.