Batch Script CMD Define
In this chapter, we will look at some of the frequently used batch commands.
S.No | Commands & Description |
---|---|
1 | VERThis batch command shows the version of MS-DOS you are using. |
2 | ASSOCThis is a batch command that associates an extension with a file type (FTYPE), displays existing associations, or deletes an association. |
3 | CDThis batch command helps in making changes to a different directory, or displays the current directory. |
4 | CLSThis batch command clears the screen. |
5 | COPYThis batch command is used for copying files from one location to the other. |
6 | DELThis batch command deletes files and not directories. |
7 | DIRThis batch command lists the contents of a directory. |
8 | DATEThis batch command help to find the system date. |
9 | ECHOThis batch command displays messages, or turns command echoing on or off. |
10 | EXITThis batch command exits the DOS console. |
11 | MDThis batch command creates a new directory in the current location. |
12 | MOVEThis batch command moves files or directories between directories. |
13 | PATHThis batch command displays or sets the path variable. |
14 | PAUSEThis batch command prompts the user and waits for a line of input to be entered. |
15 | PROMPTThis batch command can be used to change or reset the cmd.exe prompt. |
16 | RDThis batch command removes directories, but the directories need to be empty before they can be removed. |
17 | RENRenames files and directories |
18 | REMThis batch command is used for remarks in batch files, preventing the content of the remark from being executed. |
19 | STARTThis batch command starts a program in new window, or opens a document. |
20 | TIMEThis batch command sets or displays the time. |
21 | TYPEThis batch command prints the content of a file or files to the output. |
22 | VOLThis batch command displays the volume labels. |
23 | ATTRIBDisplays or sets the attributes of the files in the curret directory |
24 | CHKDSKThis batch command checks the disk for any problems. |
25 | CHOICEThis batch command provides a list of options to the user. |
26 | CMDThis batch command invokes another instance of command prompt. |
27 | COMPThis batch command compares 2 files based on the file size. |
28 | CONVERTThis batch command converts a volume from FAT16 or FAT32 file system to NTFS file system. |
29 | DRIVERQUERYThis batch command shows all installed device drivers and their properties. |
30 | EXPANDThis batch command extracts files from compressed .cab cabinet files. |
31 | FINDThis batch command searches for a string in files or input, outputting matching lines. |
32 | FORMATThis batch command formats a disk to use Windows-supported file system such as FAT, FAT32 or NTFS, thereby overwriting the previous content of the disk. |
33 | HELPThis batch command shows the list of Windows-supplied commands. |
34 | IPCONFIGThis batch command displays Windows IP Configuration. Shows configuration by connection and the name of that connection. |
35 | LABELThis batch command adds, sets or removes a disk label. |
36 | MOREThis batch command displays the contents of a file or files, one screen at a time. |
37 | NETProvides various network services, depending on the command used. |
38 | PINGThis batch command sends ICMP/IP “echo” packets over the network to the designated address. |
39 | SHUTDOWNThis batch command shuts down a computer, or logs off the current user. |
40 | SORTThis batch command takes the input from a source file and sorts its contents alphabetically, from A to Z or Z to A. It prints the output on the console. |
41 | SUBSTThis batch command assigns a drive letter to a local folder, displays current assignments, or removes an assignment. |
42 | SYSTEMINFOThis batch command shows configuration of a computer and its operating system. |
43 | TASKKILLThis batch command ends one or more tasks. |
44 | TASKLISTThis batch command lists tasks, including task name and process id (PID). |
45 | XCOPYThis batch command copies files and directories in a more advanced way. |
46 | TREEThis batch command displays a tree of all subdirectories of the current directory to any level of recursion or depth. |
47 | FCThis batch command lists the actual differences between two files. |
48 | DISKPARTThis batch command shows and configures the properties of disk partitions. |
49 | TITLEThis batch command sets the title displayed in the console window. |
50 | SETDisplays the list of environment variables on the current system. |
0 comments:
Post a Comment
For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.