Wednesday, August 17, 2011

How Delete Troublesome Files

  1. Click the Start-button and type CMD in the search field (Do NOT press Enter)
  2. When you see the program in the list, right-click on cmd.exe and choose Run as Administrator. This will open the Command Prompt Window with Administrative Privileges.
  3. In you Windows Explorer, open the folder you want to delete or remove a file from. Click on the Adress-field to reveal the true folder path.
    4. Highlight the path from the Colon (:) and to the end as shown here)





  1. Click the Start-button and type CMD in the search field (Do NOT press Enter)
  2. When you see the program in the list, right-click on cmd.exe and choose Run as Administrator. This will open the Command Prompt Window with Administrative Privileges.
  3. In you Windows Explorer, open the folder you want to delete or remove a file from. Click on the Adress-field to reveal the true folder path.
     4.   Highlight the path from the Colon (:) and to the end as shown here)


   














4.       To delete the file causing you problems, type: DEL[filename] /F /Q.
Like this:
DEL filename.dat /F /Q.
The F means: Delete File even IF it’s reported as Read Only.
The Q means: you don’t have to Confirm.
If you want to delete all files in the folder, you can use wildcards instead of Filename
like this:
DEL *.* /F /Q



Delete Folder which Contains Troublesome File(s)
Sometimes you need to delete the problem file before you delete the folder, but this is what you do:


Follow steps above then continue here:
In The Command-Window type:  RmDir /S /Q [Paste in path using Right-Click, Paste], Press Enter.
Like this:
rmdir /S /Q c:\testfolder

















2.       Folder and contents will be gone forever.

0 comments:

Post a Comment