ThyElite Forums

ThyElite Forums (http://www.thyelite.com/forum/index.php)
-   General Talk (http://www.thyelite.com/forum/forumdisplay.php?f=14)
-   -   Shutdown commands :D (http://www.thyelite.com/forum/showthread.php?t=2656)

MYMOMMAGOTBEEF 08-17-2006 01:41 PM

Shutdown commands :D
 
The shutdown command is a command which make is possible to shutdown the computer.

Example:

shutdown -s -m 127.0.0.1 -t 99 -c hello


In this case it would shutdown the computer your sitting on "127.0.0.1" in 99 seconds, and leave the comment hello in the shutdown screen.
You can use this command at LANs etc or over the network, simply replace the 127.0.0.1 with someone elses IP.
If someone does this at you go quick to start/run/cmd and type shutdown -a.

Syntaxes:

shutdown - shutdown, always start this function with it

-s It means that the computer is gonna be turned off, you could use -r, -r is for restarting

-m declares the targeted computers ip adress

-t time in seconds untill the shutdown

-c a comment in the shutdown window.

Looping the program :D is more fun!

In order to loop the program in a bat file simply enter these commands:

Example:

:1
echo hello!
goto:1


Now u declared an function which in this case is 1, and once the program comes to goto:1 is simply goes back to the function :1. And there you got an loop :D
If you replace echo hello! with ur bat files name it loops that bat, and eventually the computer crashes or freezez whe its to many windows on the screen.

Syntaxes:

1 - the 1 is the variable
goto - the goto function goes back/forward to a deklared variable, in this case it was 1.

AT commands:


AT commands is really useable to schedule tasks in the computer, With this command you can make so when the times 11:00 etc the computer will go off.

Example:
at 11:10 cmd /c shutdown -s

That will result in that, when the time is 11:10 on hes computer it will go off, You can add several of these entries =), But when their jobs done they dissapear.
If you want to delete all the tasks, If you got them in your computer simply type in at /del and it will delete all AT entries.


Syntaxes:

at - at, always start this function with it
11:10 - The time when the thing will happend
cmd - cmd
/c - loads cmd

Shutdown programs/processes:


For this task we will use the taskkill command, Which makes it possible to kill tasks in the computer.

Example:
taskkill /f /im explorer.exe

This will result in that the procces explorer.exe will be closed "killed" and the desktop dissapears, Of course you can take other things such as
taskkill /f /im iexplorer.exe

Syntaxes:

taskkil - the command taskkil, always start this function with it
/f - Forces the process to shutdown
/im - just put it in ;P


Msg:

The msg command sends an message over the network, Its pretty much the same as net send.

Example:
msg john14 hello!

It will send an message to john14 with the message hello.

Syntaxes:

msg - the command msg, always start this function with it
john14 - here you put in the username, for example john14 as i wrote
hello! - the message

Enjoy! Some parts of the tutorial are not written by me.


All times are GMT -6. The time now is 03:55 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.