A Batch File is a mix of OS/2 and DOS, It can only be used by Windows PCs.
If you learn Batch the possibilities are endless you can program in batch to make New Programming Languages to VIRUSES?!?!?!
Commands[]
@echo[]
This one starts off every script you can use it in two ways:
@echo on - default
@echo off
echo[]
This is the PRINT command of Batch you use it like this
echo put your text here
e.g. echo test
would output: test
date[]
It shows you with the current date then it prompts you to specify a new one
e.g. date
would output: The current date is: 28/02/2016
would output: Enter the new date: <dd-mm-yy>
help[]
Don't bother reading this wiki page? use this command
e.g. help
would output: (help message)
ping[]
You can ping any local IP (oh, and website)
note: Don't show someone who is a 5-year-old fake hacker this cmd
e.g. ping 127.0.0.1
would output: Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping satistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 <0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
CHKDSK[]
This checks your disk for fault (Index faults, Registery Faults and so on)
e.g. CHKDSK
would output: (CHKDSK msg)
cd[]
Change Directory! Simple
e.g. cd Users\johndoe\test
would output: C:\Users\johndoe\test>
mkdir[]
Make Directory! All you need to do is follow the example and you'd me done
e.g. mkdir test
would output: nothing
would affect following: test
rmdir[]
Total opposite of the one above Remove directory
e.g. rmdir test
would output: nothing
would affect following: test
start[]
starts up either cmd (if none specified) or the program specified
e.g. start notepad
would output: nothing
cls[]
Clear your Screen. If it's messy (it won't clear your entire desktop only the console window)
e.g. cls
would output: nothing