Vista Shutdown.bat

Operating Systems
Windows, Linux, Solaris, Red Hat, etc.....32 bit or 64 bit.
If its an OS, its here.
Post Reply
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Vista Shutdown.bat

Post by kappage »

Is it even possible to make one of these for Windows vista?? i need one to shutdown my PC at a certain time i use to do this on XP but that one for XP doesnt work with vista
All help is appreciated
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
User avatar
DMB2000uk
Site Admin
Site Admin
Posts: 7095
Joined: Mon Jul 18, 2005 5:36 pm
Location: UK

Re: Vista Shutdown.bat

Post by DMB2000uk »

What exactly isn't working? Running the batch file, or the shutdown commands?

Does running "shutdown /s" in the command prompt still shutdown vista?

Dan
Image (<- Clickable)
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Re: Vista Shutdown.bat

Post by kappage »

i ahve a batch file like so
@echo
shutdown.exe -s -t 14400 -c "Shutting down"
but when i run it nothing happens, this use to work with Windows xp and i was wondering if their was anything similar for Vista
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
User avatar
DMB2000uk
Site Admin
Site Admin
Posts: 7095
Joined: Mon Jul 18, 2005 5:36 pm
Location: UK

Re: Vista Shutdown.bat

Post by DMB2000uk »

Does running "shutdown /s" in the command prompt still shutdown vista?

Dan
Image (<- Clickable)
User avatar
Darkstar
Legit Extremist
Legit Extremist
Posts: 1910
Joined: Thu Feb 01, 2007 12:24 pm
Location: San Diego
Contact:

Re: Vista Shutdown.bat

Post by Darkstar »

Are you running the command as administrator?

:drinkers:
Phenom II 1075T,Phenom II 1090T,Intel i7 870
Gigabyte 890XA-UD3
Evga GTX460
8 GB Corsair
Agility2 120GB SSD
Dual 24" Samsungs LCD's
User avatar
Darkstar
Legit Extremist
Legit Extremist
Posts: 1910
Joined: Thu Feb 01, 2007 12:24 pm
Location: San Diego
Contact:

Re: Vista Shutdown.bat

Post by Darkstar »

try this;
right click desktop
select New > shortcut
enter "Shutdown.exe -s -t 00" without the quotes (change the time value to suit you )
click next to name it and you are done.

:drinkers:
Phenom II 1075T,Phenom II 1090T,Intel i7 870
Gigabyte 890XA-UD3
Evga GTX460
8 GB Corsair
Agility2 120GB SSD
Dual 24" Samsungs LCD's
User avatar
martini161
Mr Awesome
Mr Awesome
Posts: 3183
Joined: Sat Sep 08, 2007 8:27 pm
Location: Cherry Hill, New Jersey

Re: Vista Shutdown.bat

Post by martini161 »

this is why i like linux 8) you can write a script easily that does anything
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Re: Vista Shutdown.bat

Post by kappage »

I just tried that and then when i run it a black window pops up and then disappears... That happens even when i run it in Administrator
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
User avatar
Darkstar
Legit Extremist
Legit Extremist
Posts: 1910
Joined: Thu Feb 01, 2007 12:24 pm
Location: San Diego
Contact:

Re: Vista Shutdown.bat

Post by Darkstar »

Just did it myself on Vista and it shut down no problem (and my folding too) i tried it by messing up the syntax and it did just what you mentioned the quick flash of a black cmd window. try checking your spelling,spacing,syntax, etc.

:drinkers:
Phenom II 1075T,Phenom II 1090T,Intel i7 870
Gigabyte 890XA-UD3
Evga GTX460
8 GB Corsair
Agility2 120GB SSD
Dual 24" Samsungs LCD's
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Re: Vista Shutdown.bat

Post by kappage »

ok i really must be doing something wrong.. I set mine up exactly like below
This is after going into new shortcut

"Shutdown.exe -s -t 14400" No Quotes, This is so it shuts down about 4 hours later.
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
User avatar
Darkstar
Legit Extremist
Legit Extremist
Posts: 1910
Joined: Thu Feb 01, 2007 12:24 pm
Location: San Diego
Contact:

Re: Vista Shutdown.bat

Post by Darkstar »

did you try the 00?, i'm not positive but i might have read somewhere that the limit was 600 on that command.

:drinkers:
Phenom II 1075T,Phenom II 1090T,Intel i7 870
Gigabyte 890XA-UD3
Evga GTX460
8 GB Corsair
Agility2 120GB SSD
Dual 24" Samsungs LCD's
User avatar
bubba
Staff Writer
Staff Writer
Posts: 4765
Joined: Sun May 01, 2005 10:24 am
Location: STL

Re: Vista Shutdown.bat

Post by bubba »

Yup, its limited to 600. Why not run it via the windows scheduler? Then you don't have to worry about how long the limit is.
"The democracy will cease to exist when you take away from those who are willing to work and give to those who would not."
-Thomas Jefferson
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Re: Vista Shutdown.bat

Post by kappage »

Well thanks for all your help!!! Ill look into that Bubba 8)
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
User avatar
kappage
Legit Extremist
Legit Extremist
Posts: 1356
Joined: Mon Aug 28, 2006 11:38 pm

Re: Vista Shutdown.bat

Post by kappage »

ok, ive tried running it via windows Schedular, three times and each time it doesnt work. I think ill jsut have to figure out another way.
Main Rig: C2D 6850 @ 3.0Ghz, 2Gb DDR2667Mhz @ 833Mhz 5-5-5-15 Timings , XFX xXx 8600GTS @ 730/2260 , Gigabyte Ga-945GCM-S2L
JukeBox: Currently in an Upgrade but im too lazy to do it at the moment
I² keepin it real
Post Reply