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...)

Step 1: Very Basic!!

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.
 Nice tutorial! But I have a question... how do you post a download lnke like you did with "fake.zip"
you have to rename the downloaded file call it "funwithbatch.bat"
try this:<br><br>@echo off<br>color 3<br>echo what is your name?<br>set /p input=<br>echo hello %input%<br>pause<br>cls<br>echo how are you today (good/bad) <br>set /p input=<br>if %input%==good goto good<br>if %input%==bad goto bad<br>:good<br>echo that is good<br>goto bye<br>:bad <br>echo that is bad<br>goto bye<br>:bye<br>echo good bye for now<br>pause<br>goto end<br>:end<br><br>
Why did you block your username out?
I know! He doesn`t want people to take control of his PC, if they are a hacker!
You can't take control of someones computer by knowing there username -.- <br />
&nbsp;Sorry for my late comment but...if there a hacker you can EASSSSSSSSSLE get there username... :| fail<br /> try this in command prompt:<br /> echo %username%<br /> WOW i have your username :|
<p>Wow. Y'all are idiots. It Doesn't matter what their* username is. Also, doing echo %username% does not, in fact, easily* get you their username. it simply prints out yours. if somebody wants to take control of your CPU badly enough, it ain't that hard to do, and you can't do it with batch coding unless you fell like typing a whole heck of alot...</p>
ummm... how do you close it? please help me!!!
Control + C should stop all currently running batch processes.
How do i stop a fork bomb?
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
What about &quot;Function + break&quot;<br />
How do you put a file on your instructables
hmm, i made it on a computer so it runs the fork bomb every time my documents is pressed! How do i remove it?
You just go to wherever you put your .bat file and delete it.
its not bat, its like an autorun, but its in my documents! so i cant access!
it should end automatically when it has no more arguments to call (instructions)
oh, to end it anywhere in execution use :exit
ctrl+alt+delete click applications click end task
How do you put a file on your instructables?
pause&gt;nul or <em>command</em>&gt;nul hides the output.<br/>
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) ?
Hay! That was pretty good, but I like my fake virus better.
well then why don't you go ahead :P some more commands for you :P (i will inclund his):<br/><br/>@echo off = turns command off (Type this at the top of your program)<br/><br/>@echo on = turns command on<br/><br/>dir = scans all folders and files in the curront folder (no harm)<br/><br/>dir/s = scans all folders and files in the computer (no harm but looks like a virus is installing)<br/><br/>set value=magic = when i type %value% the computer will think i just typed magic (does not have to be value and magic)<br/><br/>set /p value= = the user types something and the computer will make %value% to become what the user typed<br/><br/>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<br/><br/>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<br/><br/>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<br/><br/>echo (texthere) = says (texthere)<br/><br/>echo (texthere)&gt;&gt;(filehere).txt = will put (texthere) in to a file called (filehere) and it will be a text documant<br/><br/>cls = clear screen<br/><br/>cd (folder) = goes to the folder<br/><br/>md (folder) = makes a folder called (folder)<br/><br/>start (program here) = start a program<br/><br/>for /l %%n In (1,1,(timeshere)) DO (command here)<br/><br/>%0 = itsself<br/><br/>pause = pause saying &quot;press any key to continue&quot;<br/><br/>pause &gt;nul = pause and say nothing<br/><br/>(command) &gt;nul = does not show that command to the user<br/><br/>:(name) = makes a lable called (name)<br/><br/>goto :(name) = goes to the label called (name)<br/>

About This Instructable


14 favorites

More by ggkiller: Fun With Batch CMD!!
Add instructable to: