Restart then sleep?

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I restart the PC most nights just to clean everything out, then put it
in sleep mode. Is there any way to accomplish this with one command,
to avoid waiting around while it restarts?


--

The government is unresponsive to the needs of the little man.
Under 5'7" it is impossible to get your congressman on the phone.

....Woody Allen
 
Steve said:
I restart the PC most nights just to clean everything out, then put it
in sleep mode. Is there any way to accomplish this with one command,
to avoid waiting around while it restarts?


--

The government is unresponsive to the needs of the little man.
Under 5'7" it is impossible to get your congressman on the phone.

...Woody Allen



You could achieve that by setting your PC to automatically go to sleep after
a period of inactivity

Control Panel > Power Options > Change plan settings
 
Jon said:
You could achieve that by setting your PC to automatically go to sleep after
a period of inactivity
Control Panel > Power Options > Change plan settings

Thanks Jon. I already have that set, just wondering if there's some
sorta batch command that would force this immediately after restart.


--

The government is unresponsive to the needs of the little man.
Under 5'7" it is impossible to get your congressman on the phone.

....Woody Allen
 
Steve said:
Thanks Jon. I already have that set, just wondering if there's some
sorta batch command that would force this immediately after restart.


I don't believe there's an inbuilt command to do it, but you could
certainly achieve it by a combination of 2 scripts or batch files

eg

One that sets a flag of your choice and reboots.
And another (a startup script) that tests the status of the flag and if it's
set then goes into sleep mode, after resetting it.
 
Back
Top