1.Write the syntax with example of the following DOS
commands:
a. Move
b. Rd
c. Edit/Notepad
d. Tree
Answers
a move is the answer of this question.
Move:
The move is a DOS command. It moves files or renames directories. This command is available in MS-DOS versions 6 and later.
Example :
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
RD:
The full form of RD is to Remove a directory (delete a directory). It is also a DOS command. By default, the directories must be void of files for the command to succeed. This command is available in MS-DOS versions two and later.
Example:
rd /s directory_name
Edit/notepad:
EDIT is also a DOS command, full-screen text editor, included with MS-DOS versions 5 and 6. The corresponding program in Windows 95 and so on, and Windows 2000 and later is Edit v2.0. PC DOS 6 uses the DOS E Editor. DR-DOS used editor up to version 7.
Example:
EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [FileName...]
Tree:
It is also a DOS command, external command, graphically displays the path of each directory and sub-directories on the specified drive. The command is available in MS-DOS versions 3.2 and so on. IBM PC DOS releases two and so on.
example:
tree path/to/folder/
path/to/folder/
├── a-first.html
├── b-second.html
├── subfolder
│ ├── readme.html
│ ├── code.CPP
│ └── code.h
└── z-last-file.html
1 directory, 6 files