LABEL
The LABEL command is used to create, change, or delete the volume label of a disk. The volume label of a disk is displayed as part of the directory listing along with the volume serial number, if exists.
Syntax:
LABEL [drive:] [label]
Drive: The location of the disk to be named.
Label The new volume label.
None Displays current disk label, if they exist. Prompts to enter a new label or delete the existing one
MD (or MKDIR)
Creates a directory. MD and MKDIR are synonymous do the same tasks.
Syntax:
MD [path] directoryname
MORE
The MORE command reads standard input from a pipe or redirected file and displays one screen of information at a time. This command is commonly used to view long files, directory output, etc.
Syntax:
MORE [path] filename
MORE < [path] filename
command | MORE [path] [filename]
command a command whose output is to be displayed.
Filename file(s) to display one screen at a time
MORE filename and MORE < filename are synonymous and equivalent to TYPE filename | MORE. In all these cases filename is displayed a screenful at a time. Pressing "Enter" displays the next screen. The display can be terminated at any time by pressing Ctrl-C. MORE automatically wraps text to fit the screen.
Let us consider an example of a big text file named BIGFILE.TXT. Now the following three commands will do the same task:
TYPE bigfile.txt | MORE
MORE bigfile.txt
MORE < bigfile.txt
MOVE
Moves files and directories from one location to another on the same or different drives.
Syntax:
MOVE [/Y | /-Y] [path] filename destination
/Y Suppresses prompting to confirm creation of a directory or overwriting of the destination. This is the default when MOVE is used in a batch file.
/-Y Forces a prompt to confirm creation of a directory or overwriting of the destination. This is the default when MOVE is used from the command line.
If more than one file is listed to be moved, destination path must be a directory and the files will retain their original names.
RD (or RMDIR)
Removes (deletes) an empty directory. RD and RMDIR are synonymous and do the same tasks.
Syntax:
RD [path] directoryname
If there is a backslash ( \ ) before the first directory name in path, that directory is considered a subdirectory of the root directory on the current drive. If there is no backslash before the first directory name in path, the directory is considered a subdirectory of the current directory.
Also RD will only delete an empty directory. If RD is used on a directory containing files and/or subdirectories, Error message is displayed by the computer.
|