Page 1 of 1

Vista Shutdown.bat

Posted: Tue Apr 08, 2008 5:28 pm
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

Re: Vista Shutdown.bat

Posted: Tue Apr 08, 2008 6:15 pm
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

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 2:09 am
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

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 10:08 am
by DMB2000uk
Does running "shutdown /s" in the command prompt still shutdown vista?

Dan

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 10:48 am
by Darkstar
Are you running the command as administrator?

:drinkers:

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 11:18 am
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:

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 2:35 pm
by martini161
this is why i like linux 8) you can write a script easily that does anything

Re: Vista Shutdown.bat

Posted: Wed Apr 09, 2008 5:22 pm
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

Re: Vista Shutdown.bat

Posted: Thu Apr 10, 2008 9:21 am
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:

Re: Vista Shutdown.bat

Posted: Sun Apr 13, 2008 11:25 pm
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.

Re: Vista Shutdown.bat

Posted: Mon Apr 14, 2008 7:52 am
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:

Re: Vista Shutdown.bat

Posted: Mon Apr 14, 2008 8:22 am
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.

Re: Vista Shutdown.bat

Posted: Mon Apr 14, 2008 10:53 pm
by kappage
Well thanks for all your help!!! Ill look into that Bubba 8)

Re: Vista Shutdown.bat

Posted: Tue May 06, 2008 5:40 pm
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.