Fun With Batch CMD!!

65,286

16

27

Introduction: Fun With Batch CMD!!

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

Attachments

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.

Step 2: Basic Codes

In this step I will show you the very easiest of codes, which are below:(things in brackets can be replaced with instructions, if two brackets have the same thing writen then they are some how linked)

:(anything1)
-this is kind of like a checkpoint for later purposes.

GOTO (anything1)
-this means go to a checkpoint specified.

echo (message)
-this displays a message in the black screen, but it is useless without a pause.

msg * (any message)
-this displays a message in a message window.

@echo off (file name)
-records the phrase in a new file.

(anything) >> (file name)
-records the phrase in a new file.

start (file name[possibly path too])
-this starts a specific program.

pause
-this is used when you want the viewer to see your messages and press any key to continue.

pause>nul
-actually I haven't figured out what this is but it let the program pause for a while.

attrib (path and file name)
-this changes the attribute of the file, you need to add +s -s +h -h +r -r before the path and file name, each of the letters mean(in order): Y system file status, N system file status, Y file is hidden, N file is hidden, Y file is read-only, N file is read-only.

del (path or path with file name)
-delete the specific file.

echo.
-makes a blank line.

Well thats all I know...

Step 3: Happy Batching!

Do what the title says...

If I got anything wrong free to speak up.

Attachments

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    27 Discussions

    0
    ZacharyF1
    ZacharyF1

    3 years ago

    can i get the actual notepad for this plz and thank you

    0
    Aleksander KnoffS
    Aleksander KnoffS

    4 years ago

    Hello, im new to cmd hacking and i need some help with my question file will someone contact me please. i would be really grateful thanks

    0
    101lenny101
    101lenny101

    10 years ago on Step 3

     Nice tutorial! But I have a question... how do you post a download lnke like you did with "fake.zip"

    0
    Craig Bird
    Craig Bird

    Reply 7 years ago on Introduction

    you have to rename the downloaded file call it "funwithbatch.bat"

    0
    ~KnexBuild~
    ~KnexBuild~

    8 years ago on Introduction

    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

    0
    Gunmaster900
    Gunmaster900

    11 years ago on Step 1

    Why did you block your username out?

    0
    will421
    will421

    Reply 11 years ago on Introduction

    I know! He doesn`t want people to take control of his PC, if they are a hacker!

    0
    Doubleblades85
    Doubleblades85

    Reply 10 years ago on Introduction

    You can't take control of someones computer by knowing there username -.-

    0
    Gunmaster900
    Gunmaster900

    Reply 10 years ago on Introduction

     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 :|

    0
    skrunch55
    skrunch55

    11 years ago on Introduction

    ummm... how do you close it? please help me!!!

    0
    musicninja17
    musicninja17

    Reply 11 years ago on Introduction

    Control + C should stop all currently running batch processes.

    0
    musicninja17
    musicninja17

    Reply 10 years ago on Introduction

    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

    0
    knex_mepalm
    knex_mepalm

    Reply 10 years ago on Introduction

    hmm, i made it on a computer so it runs the fork bomb every time my documents is pressed! How do i remove it?

    0
    musicninja17
    musicninja17

    Reply 10 years ago on Introduction

    You just go to wherever you put your .bat file and delete it.

    0
    knex_mepalm
    knex_mepalm

    Reply 10 years ago on Introduction

    its not bat, its like an autorun, but its in my documents! so i cant access!

    0
    odama666
    odama666

    Reply 11 years ago on Introduction

    it should end automatically when it has no more arguments to call (instructions)

    0
    odama666
    odama666

    Reply 11 years ago on Introduction

    oh, to end it anywhere in execution use :exit