How to Delete a Write Protected File
Level of difficulty: IntermediateThere are some programs or files that you have deleted from your machine that sometimes fail to be removed completely, leaving behind some write-protected files on your computer. You can’t just delete write-protected files in Windows. You will always encounter a dialog box, telling you that the file must be write-protected and that Windows can’t delete it, by doing so.
Materials Needed:
- DOS/Command prompt
- Microsoft Windows Operating System
- Write-protected file
- Microsoft Windows Operating System
- Write-protected file
Step 1
In order to bypass the protections provided by your Operating System for the file, you can utilize the command prompt. You can launch the command prompt in Windows XP by clicking the 'Start' button. The Start button will direct you to the Start Menu. Select Run form the Start Menu
Step 2
In the 'Run' window, key in 'cmd' or 'cmd.exe' on the 'Open' text field and then click the 'OK' button.
Step 3
The command prompt will then be launched. Change the directory to where the write-protected file is located. Make use of the cd or change directory command to change the directory.
Step 4
Check if the file is still in its directory and if it is write-protected. Make use of the attrib command to check the files attributes. Syntax: D:\Files\attrib nameofthefile.exe. You will notice the file to be listed in the directory this way: A R nameofthefile.exe.
Step 5
Still at the DOS prompt, key in 'C:\Files\attrib –r nameofthefile.exe' to remove the write-protection.
Step 6
You can now delete the file by using the del or delete command. From same path in the command prompt, key in: del nameofthefile.exe.
Step 7
Make sure that you have successfully deleted the file by checking if it still exist in its directory. To see if the write-protected file is still there, make use of the dir or directory command. From the DOS command prompt, type C:\Files\dir to list the contents of the directory. If the write-protected file is no longer listed there, then you have successfully deleted it.
Step 8
You can now go back to Windows by making use of the exit command. At the DOS command prompt, key in exit and then hit enter to close the command prompt window and return to Windows.
Windows system maintenance:
You are currently viewing How to Delete a Write Protected File on Uniblue's how to archive.
Browse more how to's
- How to Delete a Write Protected File
- How to Detect Virus
- How to Determine Clock Speed on My Computer
- How to Disable Norton Internet Security Firewall
- How to Dispose of Computers
- How to Download MP3 Music to an MP3 Player
- How to Download MP3 to PSP
- How to Download Microsoft Word to your Computer
- How to Download Music from the Computer to an MP3 Player
- How to Download Videos to a Computer
- How to Download a Desktop Theme on Your Computer
- How to Download a Driver for a HP Computer
- How to Download a RAR Movie
- How to Download an Online TV
- How to Download and Install Font
- How to Download the Security Suite
- How to Draw on the Computer
- How to Enable Cookie in a Browser
- How to Enable a USB Port
- How to Encrypt a Wireless Router