Computer Science Canada

shutting down the computer

Author:  ReN3g@de [ Wed Feb 04, 2004 5:32 pm ]
Post subject:  shutting down the computer

is there anyway to shut down the users computer in Turing??
i have this so far but its not working...

code:

var shutDown: boolean
shutDown:=Sys.Exec("c:/windows/system32/shutdown.exe")


u can see a program run for a split second then shut off but the computer still stays on! any body know wuts wrong or know another way?

Author:  Delos [ Wed Feb 04, 2004 5:43 pm ]
Post subject: 

I havn't tried this...but try this:

code:

if not Sys.Exec("c:/windows/system32/shutdown.exe") then
put "Your computer is still on..."
end if


I would, however, recommend saving your work before trying it.

But then again, I'm not sure if "shutdown.exe" is the shutdown operation...it could be...I don't know XP that well...

Author:  shorthair [ Wed Feb 04, 2004 5:50 pm ]
Post subject: 

are you sure its n exe , ive never seen it , ( just searche dmy hdd ) and im sure that its not called shutdown , cuase MS likes to make crazy names for thisngs , like **SD32** , your concept is fine , you jsut need to find hte right path , turing can run hte shutdown exe ,but to make a program to do it is some what weird as your actually adding an extra step to hte shutdown process , unless of ourse you have evil plans in mind Twisted Evil Twisted Evil

Author:  Tony [ Wed Feb 04, 2004 6:01 pm ]
Post subject: 

it used to be shutdown.exe in win98 and you could run that to turn off your computer Laughing I don't know about XP though, I suspect it's different Confused

I suppose you can just Sys.Exec a .bat file that in turn executes the proper system commands for shutdown

Author:  Delos [ Wed Feb 04, 2004 6:26 pm ]
Post subject: 

I just check in my Sys32 folder, and yes it does exist.

I'm running XP Pro.

Author:  santabruzer [ Wed Feb 04, 2004 8:52 pm ]
Post subject: 

yep.. it's there on mine too.. XP pro..

Author:  .hack [ Fri Feb 06, 2004 10:56 pm ]
Post subject: 

I tried this but MS DOS windows flickered up but I never shut down, this makes me cry Sad

Does anyone know the command to open the CD rom tray?

Author:  the_short1 [ Thu Feb 12, 2004 4:54 pm ]
Post subject: 

"C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows" no quatations
THERE U go....

i have this as a shortcut on my desktop so i double click and BAM shutdown without the menu

PS i have win98

Author:  Cervantes [ Thu Feb 12, 2004 5:05 pm ]
Post subject: 

um, why not just use the shutdown menu... Confused

anywanys .hack, some keyboards have an eject button.. search for that in the keyboard section of the help file (I'm not sure if its there or not)

Author:  the_short1 [ Fri Feb 13, 2004 10:30 pm ]
Post subject: 

the point is.... to shut down the users computer without them knowing it...
also my way does NOT bring up the Shutdown menu... simply SHUTS DOWN>>try it...in RUn, (start menu)

Author:  ReN3g@de [ Sat Feb 14, 2004 12:28 pm ]
Post subject: 

does anyone know how to shutdown a WinXp computer?


: