ProProfs - The Knowledge FREEway
CompTIA Home
 Network+ Exam
A+ Certification
Study Guide
Articles
Active Membership
Practice Questions
Practice Exams
Software
Tutorials & Tips
Cram Sheets
A+ Forum
A+ Wiki
A+ WebSchool
A+ Flashcards
A+ Quiz School
APlus Jobs
A+ Book Deals
Deals On Ebay
Google
Web ProProfs.com
SAT Test

A+ Study Guide: Command Line & OS Utilities

Delete/Rename
Opens More Info in a new browser window
   Click on the image to zoom

Del

Used to delete the specified files from the computer

Syntax

DEL [ drive: ] [ path ] filename [ /P ]

Switch

/P      Prompts for confirmation before deleting each file.

Examples

del c: \ windows \ test.txt

Delete the c:\windows\test.txt in the windows directory if it exists.

del c: \ windows \ temp \ ?est.txt

This command would delete any file ending with est.txt such as west.txt or pest.pdf.

RENAME or REN

Changes the name of the first filename you enter to the second filename you enter. In case you enter a path designation for the first filename, the renamed file will be stored on that path.

Syntax:

RENAME / REN [ d: ] [ path ] filename filename

Examples: ren a:first.txt second.txt

Change the name of the file FIRST.TXT on drive A to SECOND.TXT on drive A.

 
Google
 
Web ProProfs.com
 \n
   
Home  |  Site Map  |  Contact
Copyright © 2005-2009 ProProfs.com - Privacy