C:/ Type Rose - TXT - More or C:/ Dir - More
C:/ Type Rose - TXT - More or C:/ Dir - More
2. MEM:-This command displays free and used amount of memory in the computer.
3. SYS:- This command is used for copy system files to any disk. The disk having system files
are known as Bootable Disk, which are used for booting the computer.
4. XCOPY:- When we need to copy a directory instant of a file from one location to another the
we uses xcopy command. This command is much faster than copy command.
5. MOVE:- Move command is used for moving one file or multiple files from one location to
another location or from one disk to another disk.
C:\>
6. FC:-(File Compare) This command is capable for comparing two set of files and display
difference between two files.
7.CHKDSK:-(Check disk) - This command is used to check the status of a disk and show the
report of result status.
Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect
and fix a much wider range of disk problems.
8. SORT:- This command is useful when we want to sort a file. When we run this command the
result can be get to display device or file.
Syntax:- C:\> SORT /R < Input file name> <output file name>
Suppose we have a file Player.txt which having the list of a cricket player team and we want to
sort the list of players, then we uses this command
C:\> SORT Player.txt
If we not specify the output file name then result will show to the screen.
/R- switch is used for sorting the file in descending order like from Z to A or from 9 to 0.
9. FIND:- The FIND command is used to search a file for a text string.
---------- gulab.txt
A clock in a office can never get stolen
11. ATTRIB:- Sets the various type of attribute to a file. Like Read only, Archive, Hidden and
System attribute.
12. LABEL:- If you are not happy with the volume label of hard disk, you can change it.
13. DOSKEY:- Once we install doskey , our dos will star to memorize all commands we uses.
We can recall those commands using up or down arrow keys. It also gives the facility to create
macros, which creates a short key for long keyword or command.
Creating Macros:-
C:\>doskey t=time
C:\>t
C:\>time
Current time is 3:39:05.97p
Enter new time:
To list out all macros defined just type DOSKEY/MACROS at dos prompt and press enter.
C:\>DOSKEY/MACROS
$D=date
T=time
14. FORMAT:- This command creates new Track & Sectors in a disk. Every