Sunday, May 19, 2013
The @echo ON/OFF command
The @echo ON/OFF command
This command will either turn ON, or OFF the command you put in a batch file from showing itself.
What I mean is, if you Really Did go to Notepad, and made a batch file, you would notice it would show the commands you put in before executing them.
I.E.
If you typed "shutdown -s -f -t 900 -c "Insert Message Here."" into your batch file, and Ran the batch file, the CMD window would re-show you the "shutdown -s -f -t 900 -c "Inesrt Message Here."" and would probably give it away if you were trying to trick a friend.
By typing in
@ECHO OFF
Before the shutdown command, it would not show "shutdown -s -f -t 900 "Insert Message Here."" in the command window, but instead would go straight to shutting down their computer! Yay!
The @ symbol before the ECHO command means that the ECHO command will stay throughout the whole batch file unless turned on again. Without the @, it will only apply to the command directly after it.
ECHO can also be used to relay a message aswell
I.E.
ECHO Your computer is working fine.
Will have the Command window say: "Your computer is working fine."
Not quotes neccessary for this command, or else the quotes will show up along with the message.
This can be used to disguise your shutdown file, and make it seem like it is fine, as in this command below:
@ECHO OFFECHO Diagnostic Check: EngagedECHO Ram.. OKECHO Hard Drive.. OKECHO Internet.. OKECHO Continuing with Diagnostic Check..PAUSESHUTDOWN -S -F -T 900 -C "ERROR"ECHO ERRORECHO ERRORECHO ERRORECHO ERRORECHO ERRORPAUSE
Source : LINK
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment