Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > Misc. Software & Utilities

looking for: sleep1.exe

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 05-02-2004
Newcomer, in training
 
Location: Buckeye, AZ
Member since: Feb 2004, 41 posts
looking for: sleep1.exe

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.
Reply With Quote
  #2  
Old 05-02-2004
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
Simple answer: look for sleep.exe without the 1
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 05-02-2004
Nodsu's Avatar
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
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?

Last edited by Nodsu; 05-02-2004 at 08:50 AM.
Reply With Quote
  #4  
Old 06-29-2004
gospelmidi's Avatar
Newcomer, in training
 
Member since: Jun 2004, 19 posts
Yes, it's my keepalive.

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.

Last edited by gospelmidi; 06-29-2004 at 02:52 PM.
Reply With Quote
Reply
Thread Tools

Forum Jump


All times are GMT -4. The time now is 02:36 PM.