Which command/batch use to simulate it?

Asked By 70 points N/A Posted on -
qa-featured

Hi everyone,

I want to know what command I can use for creating a BAT file for Sleep button. I know how to do the auto shutdown command but I am not really sure if it will work just the same. So which command I will use for simulating the Sleep button?

Many thanks for every help.

 

SHARE
Answered By 0 points N/A #169866

Which command/batch use to simulate it?

qa-featured

The Windows Server Resource 2003 Resource Kit called sleep.exe provides a sleep utility you can download and drop into your System folder. There are many sleep utilities that can help you do this but use this first. The other thing you can do is to use the ping trick which is:

:sleep

Ping 127.01.01.1 -n 2 -w 1000 > NUL

Ping 127.0.0.1 -n %1 -w 1000 > NUL

Related Questions