Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 shutting down the computer
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ReN3g@de




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Wed Feb 04, 2004 5:43 pm   Post subject: (No 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...
shorthair




PostPosted: Wed Feb 04, 2004 5:50 pm   Post subject: (No 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
Tony




PostPosted: Wed Feb 04, 2004 6:01 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Delos




PostPosted: Wed Feb 04, 2004 6:26 pm   Post subject: (No subject)

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

I'm running XP Pro.
santabruzer




PostPosted: Wed Feb 04, 2004 8:52 pm   Post subject: (No subject)

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




PostPosted: Fri Feb 06, 2004 10:56 pm   Post subject: (No 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?
the_short1




PostPosted: Thu Feb 12, 2004 4:54 pm   Post subject: (No 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
Cervantes




PostPosted: Thu Feb 12, 2004 5:05 pm   Post subject: (No 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)
the_short1




PostPosted: Fri Feb 13, 2004 10:30 pm   Post subject: (No 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)
ReN3g@de




PostPosted: Sat Feb 14, 2004 12:28 pm   Post subject: (No subject)

does anyone know how to shutdown a WinXp computer?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: