0% found this document useful (0 votes)
12 views3 pages

External Commands 3

The document provides an overview of various external commands used in MS-DOS, including MORE, MOVE, ATTRIB, EDIT, and DIR commands, along with their syntax and functionalities. It explains how to view, create, rename, and move files and directories, as well as how to modify file attributes and edit files. Additionally, it covers sorting and displaying files based on different criteria such as name, size, and date.

Uploaded by

S John Abhishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

External Commands 3

The document provides an overview of various external commands used in MS-DOS, including MORE, MOVE, ATTRIB, EDIT, and DIR commands, along with their syntax and functionalities. It explains how to view, create, rename, and move files and directories, as well as how to modify file attributes and edit files. Additionally, it covers sorting and displaying files based on different criteria such as name, size, and date.

Uploaded by

S John Abhishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXTERNAL COMMANDS

MORE: - This command is used to see the scrolled any information with page wises. (To see the File
information with page wise.) and creating new file.
Syntax: -
C:\>type <Filename> | More <Enter>
OR
C:\> more < (Filename) <Enter>
C:\>dir | more <Enter>
If you want create a new file with using MORE command:
Syntax: -
C:\>more > <New File Name> <Enter>
Here type the information….
-------------------
^Z <Enter>
C:\>=

MOVE: - This command has three facilities.


1. Renaming Filename
2. Renaming Directory Name
3. Moving Files from one directory to another directory.
Renaming Filename: -
Syntax: -
C:\>move <Old Filename> <New Filename>
Renaming Directory Name: -
Syntax: -
C:\>move <C:\Old Directory Name> <C:\New Directory Name>
Moving Files from one directory to another directory: -
Syntax: -
C:\>move <Filename> <C:\Directory Name>
ATTRIB: - This command is used to Displays or changes file attributes (Protections).
+ Sets an attribute (Protection).
- Clears an attribute (Protection).
R Read-only file attribute (Protection).
H Hidden file attribute (Protection).
/S Protect the files in all directories in the specified Directory.
Syntax: -
C:\>attrib +r <Filename> {To set the Read - Only Protection}
C:\>copy <Filename>+con
C:\>attrib -r <Filename> {To Remove the Read - Only Protection}
C:\>attrib +h <Filename> {To set the Hidden Protection}
C:\>attrib -h <Filename> {To Remove the Hidden Protection}
If you want see the protected file list:
Syntax:
C:\>attrib <Enter>
If you want protect the files in all directories in the specified Directory.
Note: First open the existed directory.
C:\>cd Suman
C:\Suman>attrib +h *.*/s
or
C:\Suman>attrib/s +h *.*
C:\Suman>attrib -h *.*/s
or
C:\Suman>attrib/s -h *.*/s
DIR/AH: - This command is used to see the all Hidden files.
Syntax: -
C:\>dir/ah
DIR/AR: - This command is used to see the all Read- Only files.
Syntax: -
C:\>dir/ar
DIR/AS: - This command is used to see the all System files.
Syntax: -
C:\>dir/as

EDIT: - This command is used to modify the specified file, create the new file and create the duplicate file
etc…
Syntax: -
C:\>edit <Filename>
C:\>edit
When you give the edit command it can returns EDITOR is called as MS-DOS Editor.
EDITOR
DIAGRAM

If you want to activate


the Menus press ALT button and press the activated Letter.
File Menu: - Activate with Alt + F
Save: - Save the present opened file.
File Menu -----> Save
Exit: - Close the Ms-Dos Editor and Returns to Ms-Dos Prompt
File Menu -----> Exit
New: - Create the new file.
File Menu ------> New
Open: - Open the already created file.
File Menu -----> Open
Save As: - Create the duplicate file of present opened file.
Note: First open the file using Open Command after use this command.
File Menu ------> Save As
Close: - Close the present file.
File Menu -----> Close
If you want to see the Opened files list:
View Menu (Alt + V)
Print: - Prints the information on the page.
File Menu -----> Print
EDIT Menu: - Activate with Alt + E
Cut: - Deletes the selected information and copied into memory (Buffer or RAM).
Note: selecting information with Shift + Arrows
Edit Menu -----> Cut
Copy: - Copies the selected information into memory (Buffer or RAM).
Note: selecting information with Shift + Arrows
Edit Menu -----> Copy
Paste: - Inserts the Copies or Cuts information into present cursor place.
Note: First Cut or Copy the Information
Edit Menu -----> Paste
Clear: - Deletes the selected Information.
Note: selecting information with Shift + Arrows
Edit Menu -----> Clear
SEARCH Menu: - Activate with Alt + S
Find: - Finds the specified word or text.
Search Menu -----> Find
Find what: [……………………….]
[ ] Match whole words only
[ ] Match case
Repeat Last Find: - Finds the specified next searched word or text.
Search Menu -----> Repeat Last Find or F3
Replace: - Finds and Replace the specified word or text.
Search Menu -----> Replace
DIR COMMANDS: -
DIR/ON: - This command is used to see the files and directories with name wise. (Ascending Order)
Syntax: -
C:\>dir/on
DIR/O-N: - This command is used to see the files and directories with name wise. (Descending Order)
Syntax: -
C:\>dir/o-n
DIR/OE: - This command is used to see the files and directories with extension wise. (Ascending Order)
Syntax: -
C:\>dir/oe
DIR/O-E: - This command is used to see the files and directories with extension wise. (Descending Order)
Syntax: -
C:\>dir/o-e
DIR/OS: - This command is used to see the files and directories with size wise. (0 to 9)
Syntax: -
C:\>dir/os
DIR/O-S: - This command is used to see the files and directories with size wise. (9 to 0)
Syntax: -
C:\>dir/o-s
DIR/OD: - This command is used to see the files and directories with Date wise. (0 to 9)
Syntax: -
C:\>dir/od
DIR/O-D: - This command is used to see the files and directories with Date wise. (9 to 0)
Syntax: -
C:\>dir/o-d

You might also like