Remove these ads by
Signing Up
Remove these ads by
Signing Up
Remove these ads by
Signing Up
PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format.
You also have the ability to customize your PDF download.
@echo off
:a
set a=%random% % 16384 + 1
echo %a%
goto a
But nice work anyway!
I'm lazy.
@echo off
echo you have a virus!!!
pause
cls
echo press any key to delete the infected file(s) automatically.
pause
cls
echo deleting files from c:\%userprofile%
echo 10%
echo 26%
echo 48%
echo 60%
echo 88%
echo 100%
echo files deleted.
pause
cls
color 47
echo WARNING MAJOR CRITICAL FILES MISSING
echo total system failure, attempting to initiate backup sequence %random%
pause
echo...
pause
echo backup failure, restarting hard drive process sequences.
pause
cls
color 17
echo warning, total system meltdown immenent, shut down computer now to avoid fire.
pause
cls
echo auto shutdown initiated
pause
shutdown -s -t 999
pause
shutdown -a
if %a% EQU %b% echo hello world!
this is saying: if variable "a" equals the variable "b" , input "hello world!" on the screen.
lets have a look at the "EQU". this means equal. there are many different "switches" like these that you can replace it by:
GTR--Greater than
LSS--Lesser than
GEQ--greater or equal to
LEQ--lesser or equal to
NEQ--not equal to
EQU--equal to
now for the %b%
instead of a variable after the switch, you can input a number. for example: if %a% EQU 22615 echo hello world!
and after all that, you choose the command that is going to happen if
%a% equals %b% (first eample) in this case, "echo hello world!"
hope this helped