Introduction Batch Programming

May 6, 2009

batch programming language is used by the Command Prompt (CMD), formerly known as MS-DOS. This batch program is also a program that is very unique and easy to understand, Batch programs can also be used for various purposes in the Windows operating system, such as create folders, rename folders, delete files, copy files, even to make a variety of equipment.

to create this tool, we can write the code in the batch program text editor such as notepad, and save the extension (. bat)

batch program can be found in the Windows OS, [start menu] All Programs-Accessories-Command Prompt.

following example batch code:

C: Document and Settings Users>D:

D: >md myFolder

code is a simple example to create a folder on Drive D: (localDisk D: ) with myFolder a name, a description follows the code:

C: Document and Settings Users> is the default view when you first open the Command Prompt (CMD).

D: is the code for entry to the local disk D:

md command to create a folder (md = make directory)

myFolder is the name of the folder you created

to see more code batch program, you can type Help on the CMD, like this :

D:>help (then press ENTER)

then you can see more command/code like this :

ASSOC, AT, ATTRIB, BREAK,CACLS, CALL, CD, CHCP, CHDIR, CHKDSK, CHKNTFS, CLS, CMD, COLOR, COMP, COMPACT, CONVERT, COPY, DATE, DEL, DIR, DISKCOMP, DISKCOPY, DOSKEY, ECHO, ENDLOCAL, ERASE, EXIT, FC, FIND, FINDSTART, FOR, FORMAT, FTYPE, GOTO, GRAFTABL, HELP, IF, LABEL, MD, MKDIR, MODE, MORE, MOVE, PATH, PAUSE, POPD, PRINT, PROMT, PUSHD, RD, RECOVER, REM, REN, RENAME, REPLACE, RMDIR, SET, SETLOCAL,SHIFT, SORT, START, SUBTS, TIME, TITLE, TREE, TYPE, VER, VERIFY, VOL, XCOPY.

To find the Example how to use command, you can type /? after command, example :

D:/>MD /?


A D V E R T I S E M E N T





Related Post:


One Response to “Introduction Batch Programming”

  1. [...] knowing the basic programming batch (batch introduction) we know batch programming that can be utilized for the purpose of the computer operating system [...]

Leave a Reply