MS-DOS tutorial COPY,DELETE,ERASE,TYPE command a2z

Share this article to your friends

MS-DOS tutorial COPY,DELETE,ERASE,TYPE command a2z

(MS-DOS tutorial  with easy explanation)

…………………………………………………………………………………………….

MS-DOS tutorial

13.  COPY

This command is used to create a duplicate file of any file.

Syntax 1- ->     C: \> Copy <File Name><extension of the file> <New Name of the File><extension of new named file>

Syntax 2- ->  C: \> Copy <Path \ File Name (with extension of the file )> <Target Drive>

Ex.- – > C: \> COPY ABC.txt  XYZ.txt

Ex.- – > C: \> COPY Nursing.doc D:

Ex.- – >  C: \> COPY  *.txt E:    ( with the help of this command All text file ( such as Notepad file) will be copied to E -Drive )

Remark:- The above command used a wildcard (*)  to copy all text files to the E: drive.

14.  DEL (Delete Command)

This command is used to delete the file from system such as if there is a file named A.txt then it will be delete as given below :-

Syntax–>  C: \> Del <File name with extension>

Ex. — > C: \> Del A.txt    (then press ENTER button of keyboard, you can see the file named A is deleted)

Remark:- folders/directories can’t be deleted by Delete command     

(MS-DOS tutorial)

15.  ERASE ( Erase Command)

This command is used to Erase the file from system such as if there is a file named A.txt then it will be Erased  as given below :-

Syntax– >  C: \> Erase <File name with extension>

Ex. — >  C: \> Erase Del A.txt    (then press ENTER button of keyboard, you can see the file named A is Erased)

Remark:- folders/directories can’t be Erased by Erase command

 16.  REN (RENAME COMMAND)

This command is used to rename the file.

Syntax- – > C: \> REN <Old File Name><Old File Extension> <New File Name><New File Extension>

Ex. – – > C: \> REN abc.txt xyz.txt

17.  TYPE COMMAND

We can use this command to see the text of the file on the screen. Extension is required to see the content of file

Syntax– >  C: \> TYPE <File name><Extension>

Ex. – – > C: \> TYPE ABC.txt

18.  EXIT COMMAND

This command is used to exit Dos prompt.

Syntax- – > C: \> Exit

Ex- – > C: \> Exit

19.  PROMPT COMMAND 

This command is used to change Prompt that presently display on the screen.

Syntax- – >               C:\>prompt <text>

(text specifies new command prompt, Default prompt is  C:\>,that is displayed on screen at the starting point  )

Ex. – – >                       C:\> prompt abc

(after pressing ENTER button of the keyboard, prompt will be changed as abc)

(MS-DOS tutorial)

Any prompt can be made up of normal characters & the following special codes:

ms-dos tutorial

codes                   characters

$A                           & (Ampersand)

$B                           | (pipe)

$C                           ( (Left parenthesis)

$D                           Current date

$E                           Escape code (ASCII code 27)

$F                           ) (Right parenthesis)

$G                          > (greater-than sign)

$H                           Backspace (erases previous c

$L                            < (less-than sign)

$N                          Label of Current drive

$P                           Label of Current drive and path ( where you are presently )

$Q                          = (equal sign)

$S                           (space)

$T                           Current time

$V                           Windows version number

$_                           Carriage return and linefeed

$$                           $ (dollar sign)

Remark:- if you want default prompt again then write prompt and press ENTER, prompt will be changed as C:\>

(to be continued…)

COPY command ,DELETE comand,ERASE Command,RENAME command,TYPE command ,EXIT command,PROMPT command

Previous Topic — > ms-dos commands with example internal commands A2Z

click on the link given below to see remaining ms-dos commands

Next Topic –> MS-DOS commands with easy example-part3

if you want to Read this topic in Hindi Language Click on the below link

ms-dos commands with example in hindi internal commands A2Z

Share this article to your friends