Friday, August 5, 2011

Delete files through Command

Step1:                                         
Open the command prompt by going to Start > All Programs > Accessories > Command Prompt. Alternately, you can open the run dialog (WinKey + R) and type "cmd" without the quotes.
Step2:
Type "del " without the quotes.
Step3:
If you are currently in the directory where the file is located, you should be good to go. Type in the name of the file with the extension. If you do not know what a file extension is, go play Club Penguin or something.
Step4:
If you are not in the right directory, you can either "cd" to the directory or type the full path.

For example, if you wanted to delete "file.txt", you would type "del file.txt". If this file was located on the desktop and you were one directory above, you could type "C:\Users\username\Desktop\file.txt".

Step5:
DEL also supports wildcards (* and ?). For example, if you wanted to delete all files on your desktop with the .wav extension, you would type "del C:\Users\username\Desktop\*.wav". And if you wanted to screw up your system, you could type "DELL C:\\*.-*". I messed up the text there so no one would accidentally copy that into the Command Prompt, but you know what I mean.

        Be Carefull ,,DEL does not send files to the Recycle Bin. It permanently deletes them.

No comments:

Post a Comment