Tips and Information
Section: Computer
tipsplusplus logo
Home page
More tips to "Computer"
 

Examples to some common DOS commands ( in Windows 98 SE) (2).

Copy, rename and delete files.


DOS = Disk Operating System.

You can enter the DOS commands after the DOS prompt (A:\> or C:\> ).
Note: Drive letter "a" will be used here for the first floppy drive and drive letter "c" for the hard drive .


How to copy files:
copy a:\read98.txt c:\temp
Copy a text file with the name "read.98.txt" from the floppy disk in drive A to the hard disk C under the directory name "temp" and use the same filename as on the floppy disk.

copy a:\read98.txt c:\temp\read98c.txt
Copy the file "read98.txt" from the floppy disk in drive A to the hard drive C and save the file under the name "read98c.txt"under the directory "temp".

copy c:\temp\read98c.txt a:\read98a.txt
Copy a text file with the name "read98c.txt", which is stored on the hard disk C under the directory "temp", to the floppy disk in drive A and give the text file the new name "read98a.txt" .


How to rename files:

ren a:\phot.gif photo.gif
Rename the file "phot.gif" on the floppy disk in drive A to the new filename "photo.gif" .


How to delete files:

del a:\read98a.txt
Delete the file with the name "read98a.txt" on the floppy disk in drive A.

del c:\temp\read98c.txt
Delete the file with the name "read98c.txt" , which is stored on the hard disk C under the directory "temp" .


 
Note: Our tips, information and other contents on this web site are subject to our Disclaimer and Trademark Information.
Disclaimer and Trademark Information

Last update of this web page: 10 January, 2002