Automatic shutdown of my computer

Jassi

Diamond Member
Sep 8, 2004
3,296
0
0
I usually fall alseep near my computer but leave it on because when I get tired, I get careless. How can I shut it down? When I get tired I want to be able to program it so that in 1 hour it should exit everything and shut down.
 

agnitrate

Diamond Member
Jul 2, 2001
3,761
1
0
run this command :

shutdown -s -t 3600 -c "Shutting down in 1 hour" -f

to cancel it:

shutdown -a

There ya go.

-silver
 

BlueWeasel

Lifer
Jun 2, 2000
15,944
475
126
Originally posted by: agnitrate
run this command :

shutdown -s -t 3600 -c "Shutting down in 1 hour" -f

to cancel it:

shutdown -a

There ya go.

-silver

Nice tip...I didn't know it could be done that way
 

blueshoe

Senior member
Mar 6, 2005
414
0
76
Originally posted by: agnitrate
run this command :

shutdown -s -t 3600 -c "Shutting down in 1 hour" -f

to cancel it:

shutdown -a

There ya go.

-silver

Whoa :Q

 

boran

Golden Member
Jun 17, 2001
1,526
0
76
I prefer the shutdown command, you could even make it into a batch script.
 

Slogun

Platinum Member
Jul 4, 2001
2,587
0
0
Sounds like you guys already have this topic covereed, but for the record, thought I'd mention that I've been using the freeware program switch off for years to shut down my game servers at night.

Can be set to shut down the comp at a preset time, or after a preset interval and can be set to run as a windows service so it will run with presets every time windows starts up.
 

bob4432

Lifer
Sep 6, 2003
11,727
46
91
Originally posted by: agnitrate
run this command :

shutdown -s -t 3600 -c "Shutting down in 1 hour" -f

to cancel it:

shutdown -a

There ya go.

-silver

i like :)

 

boran

Golden Member
Jun 17, 2001
1,526
0
76
you can turn that into a cmd file and then use windows scheduler to run it, no need for external programs.
 

bob4432

Lifer
Sep 6, 2003
11,727
46
91
Originally posted by: boran
you can turn that into a cmd file and then use windows scheduler to run it, no need for external programs.

that is exactly what i did, works like a charm