Fun With Batch CMD!!

 by ggkiller
bmp.bmp
In this Instructables I will teach you beginners(unless you're a pro which in case you should not waste your time on this) something about batch and simple commands that can make your time on your computer a little better than wasting it on some crappy new Halo game(no offence).

I will be explaining how to use cmd to talk, prank, scare, or even infect the computer!!(the basic kind)

There's a file for you to download(below), I made it of course for you to comment on!!(don't be hard on me, I'm not a pro...)
fake.zip978 bytes
 
Remove these adsRemove these ads by Signing Up

Step 1: Very Basic!!

2.bmp
2.bmp
2.bmp
When you make your own batch program, you should have Notepad opened.

on the first line, we start off with:


@echo off


or maybe:


@echo on


or maybe you don't want to put anything on the first line.(not recommended)

but the main point to this is if you want to show or hide the commands, but normally you don't want to, or else it will ruin the beauty of your work.
101lenny101 says: Dec 12, 2009. 12:30 PM
 Nice tutorial! But I have a question... how do you post a download lnke like you did with "fake.zip"
Craig Bird in reply to 101lenny101Nov 21, 2012. 9:46 PM
you have to rename the downloaded file call it "funwithbatch.bat"
~KnexBuild~ says: Aug 24, 2011. 7:12 AM
try this:

@echo off
color 3
echo what is your name?
set /p input=
echo hello %input%
pause
cls
echo how are you today (good/bad)
set /p input=
if %input%==good goto good
if %input%==bad goto bad
:good
echo that is good
goto bye
:bad
echo that is bad
goto bye
:bye
echo good bye for now
pause
goto end
:end

Gunmaster900 says: Jan 24, 2009. 1:39 AM
Why did you block your username out?
will421 in reply to Gunmaster900Apr 16, 2009. 3:52 PM
I know! He doesn`t want people to take control of his PC, if they are a hacker!
Doubleblades85 in reply to will421Mar 24, 2010. 3:42 PM
You can't take control of someones computer by knowing there username -.-
Gunmaster900 in reply to will421Jan 14, 2010. 2:28 PM
 Sorry for my late comment but...if there a hacker you can EASSSSSSSSSLE get there username... :| fail
try this in command prompt:
echo %username%
WOW i have your username :|
skrunch55 says: Aug 26, 2008. 1:27 AM
ummm... how do you close it? please help me!!!
musicninja17 in reply to skrunch55Apr 11, 2009. 9:09 PM
Control + C should stop all currently running batch processes.
knex_mepalm in reply to musicninja17Sep 26, 2009. 3:38 AM
How do i stop a fork bomb?
musicninja17 in reply to knex_mepalmSep 26, 2009. 12:11 PM
If you're lucky, hit control+alt+delete quick, and close out all the applications. Or otherwise, just restart your computer. The beauty if fork bombing is that it really doesnt destroy anything, its just a major incovenience when you have to shut down your computer XD
elkalpin in reply to musicninja17Oct 18, 2009. 2:03 PM
What about "Function + break"
knex_mepalm in reply to musicninja17Sep 30, 2009. 4:27 AM
How do you put a file on your instructables
knex_mepalm in reply to musicninja17Sep 27, 2009. 12:06 AM
hmm, i made it on a computer so it runs the fork bomb every time my documents is pressed! How do i remove it?
musicninja17 in reply to knex_mepalmSep 27, 2009. 11:33 AM
You just go to wherever you put your .bat file and delete it.
knex_mepalm in reply to musicninja17Sep 28, 2009. 1:12 AM
its not bat, its like an autorun, but its in my documents! so i cant access!
odama666 in reply to skrunch55Jan 22, 2009. 7:38 PM
it should end automatically when it has no more arguments to call (instructions)
odama666 in reply to odama666Jan 22, 2009. 7:41 PM
oh, to end it anywhere in execution use :exit
EnigmaMax in reply to skrunch55Aug 29, 2008. 8:36 PM
ctrl+alt+delete click applications click end task
knex_mepalm says: Sep 30, 2009. 4:27 AM
How do you put a file on your instructables?
will421 says: Jun 8, 2009. 4:11 PM
pause>nul or command>nul hides the output.
LoCalHaCkEr says: Jun 8, 2009. 3:03 PM
LUCKEY!
PKTraceur says: Feb 4, 2009. 2:03 PM
THANK YOU! Just what I was looking for, basic .vbs files. (Ctrl+C+V to all the icons on desktop.) Cab you give an example of a start(Filename) ?
jbv6 says: Dec 25, 2008. 9:54 PM
Hay! That was pretty good, but I like my fake virus better.
Gunmaster900 in reply to jbv6Jan 24, 2009. 2:01 AM
well then why don't you go ahead :P some more commands for you :P (i will inclund his):

@echo off = turns command off (Type this at the top of your program)

@echo on = turns command on

dir = scans all folders and files in the curront folder (no harm)

dir/s = scans all folders and files in the computer (no harm but looks like a virus is installing)

set value=magic = when i type %value% the computer will think i just typed magic (does not have to be value and magic)

set /p value= = the user types something and the computer will make %value% to become what the user typed

set /a value=%value%-1 = say value was 10. i am typing 10-1 but thats going to be the value so with the /a it makes it think its 9

if %value%==55 goto :55 = this will see if %value% is equal to 55 if it is it goes to :55 if not it carrys on from where it was

if not %value%==55 goto :55 = This will see if %value% is not equal to 55 and if it is equal then it carrys on if its not equal then it gots to :55

echo (texthere) = says (texthere)

echo (texthere)>>(filehere).txt = will put (texthere) in to a file called (filehere) and it will be a text documant

cls = clear screen

cd (folder) = goes to the folder

md (folder) = makes a folder called (folder)

start (program here) = start a program

for /l %%n In (1,1,(timeshere)) DO (command here)

%0 = itsself

pause = pause saying "press any key to continue"

pause >nul = pause and say nothing

(command) >nul = does not show that command to the user

:(name) = makes a lable called (name)

goto :(name) = goes to the label called (name)
Pro

Get More Out of Instructables

Already have an Account?

close

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.

Upgrade to Pro today!