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...)
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...)
Downloads
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.
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.
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...
:(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...
Happy Batching!
Do what the title says...
If I got anything wrong free to speak up.
If I got anything wrong free to speak up.