Setting a timer for comp to shut down

Bugz

Fledgling Freddie
Joined
May 18, 2004
Messages
7,297
I.e. -> if I want music on and i want to have it automatically shut down wmp and then the comp in the near future - how would I go about this?

Much thanks!
 

- English -

Resident Freddy
Joined
Apr 7, 2004
Messages
5,263
make aplaylist with the songs u want, go to sleep then when the songs are done you are asleep ;)

p.s leave comp on overnight then :D
 

Solo

Fledgling Freddie
Joined
Aug 2, 2004
Messages
1,086
An elaborate method would be to set a normal alarm then when it goes off get up and stick tin-foil nob into the mains. Volla hopefully all electricals will be shut down. Except maybe your dishwasher.
 

old.Tohtori

FH is my second home
Joined
Jan 23, 2004
Messages
45,210
So Bugz, you want to wank at your comp, but want the porn to shut down after a while because you fall asleep right after? :D

Had to *cough*
 

Mojo

Fledgling Freddie
Joined
Feb 27, 2004
Messages
1,940
Write a batch file and set the task scheduler to execute said batch file at the desired time.

If you just wanted the whole comp to power down you could use the shutdown -f in the batch file this will shutdown the PC and force close all apps for example
 

Overdriven

Dumpster Fire of The South
Joined
Jan 23, 2004
Messages
12,850
Write a batch file and set the task scheduler to execute said batch file at the desired time.

If you just wanted the whole comp to power down you could use the shutdown -f in the batch file this will shutdown the PC and force close all apps for example

Yeah, but he wants it to shut down after a certain time..

If you could use "shutdown -i 600" in a batch, that't be great. But you can't =o or.. "Shutdown /t:600 -s" o_o something along those lines.

(I'm sad, I didn't actually have to google the syntax)
 

Mojo

Fledgling Freddie
Joined
Feb 27, 2004
Messages
1,940
Yeah, but he wants it to shut down after a certain time..

If you could use "shutdown -i 600" in a batch, that't be great. But you can't =o or.. "Shutdown /t:600 -s" o_o something along those lines.

(I'm sad, I didn't actually have to google the syntax)

You can use a time variable in a batch iirc it just seems pointless as you could just execute the batch later.

I would just use shutdown -s -f and set the schedule for 30 mins after the expected Zzzzzzzzzz o'clock (assuming that's what he wants it for)
 

Congax

Fledgling Freddie
Joined
Aug 18, 2004
Messages
3,231
Use Linux and go like: "Shutdown -h 600 'time to go to bed mater' "

Actually, come to think about it, doesn't shutdown -h work on windows?

Edit: Bugz, execute notepad

SHUTDOWN -s -t 600

save as shutdown10min.bat and you can just execute that iirc.

(-> 10 minutes that is)


- I might be awfully mistaken.-
 

Lamp

Gold Star Holder!!
Joined
Jan 16, 2005
Messages
23,249
Alarm Clock + 16oz claw hammer does the trick
 

Mojo

Fledgling Freddie
Joined
Feb 27, 2004
Messages
1,940
Actually, come to think about it, doesn't shutdown -h work on windows?

Cos its not Linux :p

The closest thing on windows is -f which force closes apps in case you have issues with a running app not closing during a normal shutdown.
 

Congax

Fledgling Freddie
Joined
Aug 18, 2004
Messages
3,231
Cos its not Linux :p

The closest thing on windows is -f which force closes apps in case you have issues with a running app not closing during a normal shutdown.

SHUTDOWN -s -t 600

does work on Windows tho?
 

Mojo

Fledgling Freddie
Joined
Feb 27, 2004
Messages
1,940
SHUTDOWN -s -t 600

does work on Windows tho?

Yes, I was just on about the h switch that u mentioned for the Linux shutdown command, there is no windows equal unlike -r, the closest to -h for windows is -f
 

Huntingtons

Resident Freddy
Joined
Jan 19, 2004
Messages
10,770
is it possible to boot your comp at a certain time? coz my phone is dead and i need to be at work @ 12 not sure i can wake up without a clock
 

Congax

Fledgling Freddie
Joined
Aug 18, 2004
Messages
3,231
Yes, I was just on about the h switch that u mentioned for the Linux shutdown command, there is no windows equal unlike -r, the closest to -h for windows is -f
Ah yes :)
 

Mojo

Fledgling Freddie
Joined
Feb 27, 2004
Messages
1,940
is it possible to boot your comp at a certain time? coz my phone is dead and i need to be at work @ 12 not sure i can wake up without a clock

You could do something with Wake on Lan in theory, but from one PC not likely, you typically wake PC's by sending a signal (packet) across the network from another PC/server plus there would be some scripting/Automation work to do before you got the PC to do anything functional when it was booted.

So No probably not.
 

Congax

Fledgling Freddie
Joined
Aug 18, 2004
Messages
3,231
My BIOS has an option to setup a boot on a given time. I suggest you check your BIOS to see if you have that aswell :)
 

Ingafgrinn Macabre

Can't get enough of FH
Joined
Jan 4, 2004
Messages
3,155
in a batch file named "shtdn.bat"
Code:
@ECHO OFF
shutdown.exe -i -s -t 10 -c "Sleeping timer closing down the PC"

and put that shtdn.bat in your scheduled tasks. (Control panel >> scheduled tasks)

Can indeed also, like mentioned above, just let it play for 10 minutes orso (-t 600) and run it when you go to bed. the -t argument takes the time in seconds it'll wait to shutdown, so 600 is 10 minutes. 900 is 15.
 

Sparx

Cheeky Fucknugget
Joined
Sep 30, 2005
Messages
8,059
not sure if its been answered yet i cant be arsed to look

Start > control panel > schedule tasks > add new task > next > Browse > Browse to Windows then system32 folder, find shutdown.exe > perform daily (if thats what you want, then add time etc, its all self explanatory after that

Means your comp will shut down every night at the time you requested
 

Oysterboy

Fledgling Freddie
Joined
Mar 14, 2004
Messages
351
Why not just set it to shut down by using "screen properties" (right-click on desktop and click Properties)? Then set both HDDs and monitor to shut down after e.g. an hour.

Something like this (in Norwegian, sorry):

 

Users who are viewing this thread

Top Bottom