Simple Shell Functions

Blessing

User is banned.
Reputation
0
I'll tell your some shell functions. With shells, you can shutdown, restart, log off, open a program, and much more!
Let's let started ::Smile::

Shutdown Tutorial With Shell:
Make a button, call it Shutdown, and add this code
[vb]Shell("shutdown -s")[/vb]


Restart Tutorial With Shell:
Make a button, call it Restart, and add this code
[vb]Shell("shutdown -r")[/vb]


Log Off Tutorial With Shell:
Make a button, call it Log Off, and add this code
[vb]Shell("shutdown -l")[/vb]


Abort Tutorial With Shell:
(This aborts / cancels your shutdown, restart, or log off)
Make a button, call it Abort, and add this code
[vb]Shell("shutdown -a")[/vb]


Open a Program Tutorial With Shell:
Make a button, call it whatever you want and add this code:
[vb]Shell("C:\Program Files\Mozilla Firefox\firefox.exe")[/vb]
Change the thing between ( and ) to whatever you want the program to open.
So if you want to open Sandboxie it would be:
[vb]Shell("C:\Program Files\Sandboxie\Start.exe")[/vb]
 
Hey dragon welcome to the forums.

It is really simple isnt it.
 
Im not sure, but in the CMD you used to beable to do a shutdown on a timer with a message.

Ill do some research.
 
I wasnt sure if you can do the message thing with shells, just its the exact same commands to get the message thing.

shutdown -s -t 120
 
Oh yeah -t. I remember, but I have a more advanced way of shutting down my computer in less than a second. It really shuts down my computer faster
 
I wasnt really gonna suggest that shutting down the computer using a timer was going to be quicker, it just lets the user time to revert the shutdown command by typing
Code:
shutdown -a
into the cmd, or if you using it as a prank, just more time to watch them panic.
 
Back
Top