I know I've seen threads on this list concerning execution of timed batch
files for doing backups, downloads, etc.

I came across the following and thought I would share it. If you have
Windows 2000 servers this tip might help you out.

WINDOWS 2000 PROFESSIONAL

MAKE A BATCH FILE SNOOZE WITH SLEEP.EXE

Sometimes it's necessary to make a batch file pause to wait for user
input, display information to the user, or for some other reason. The PAUSE
command works fine when you want to simply pause execution of the batch
file. It displays the message "Press any key to continue." When the user
presses a key, execution resumes.

In some cases, you'll probably want the batch file to pause for a
specified period of time and then continue on its own. For example, maybe
you
want to display a message to users for a brief period during logon and
then have the batch file continue automatically. You can do this by using
the Sleep.exe tool included with the Windows 2000 Resource Kit.

Sleep.exe takes only one parameter--the number of seconds to pause
before continuing. The following example would pause execution for 30
seconds:

sleep 30

Sleep is just half of the solution if you want to display a message. You
also need to use ECHO to display the message. So, issue as many ECHO
commands as you need to display the message, then follow those commands with
a SLEEP command.


Bill Eyring
Director of Information Systems
Michael Haberman Associates, Inc.
125 Front Street, Mineola, N.Y. 11501
516-739-8080
Rbase Developer

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to