View Full Version : Script Problem in VB
Hellbreather
03-03-2005, 11:10 AM
I want to make myself a program that will shut down my computer but when I try the command it doesn't work does anyone know the command that shut downs the computer?
(I need it to make a quicker version of the shutdown process)
shmoove
03-03-2005, 11:55 AM
ExitWindowsEx (http://www.mentalis.org/apilist/ExitWindowsEx.shtml) shuts down the computer, but as far as I know it's equivalent to shutting it down from the start menu so I don't see how you can use it for a faster shutdown.
shmoove
Hellbreather
03-03-2005, 12:20 PM
Cheers for that
Nighthawk2008
03-03-2005, 05:41 PM
If you call on the shutdown.exe script under the system32 folder for windows, that might make it a little faster. I know that in Turing, with the Sys.Exec command, I could make the computer force a shutdown by using the -F parameter.
I don't know if there is a similar commmand in VB, I didn't learn that much yet..
tboss132
03-03-2005, 07:04 PM
If you call on the shutdown.exe script under the system32 folder for windows, that might make it a little faster. I know that in Turing, with the Sys.Exec command, I could make the computer force a shutdown by using the -F parameter.
I don't know if there is a similar commmand in VB, I didn't learn that much yet..
BTW - the shutdown.exe command is not available in windows 2000. It's only for windows xp
Nighthawk2008
03-03-2005, 10:20 PM
BTW - the shutdown.exe command is not available in windows 2000. It's only for windows xp
Ok, I didn't know that. Thx for letting me know :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.