Cannot delete : Access is denied.
Make sure the disk is not full or write-protected and that the file is not currently in use.
Make sure the disk is not full or write-protected and that the file is not currently in use.
1IT Automation Made Easy
Automate IT processes in minutes. Download Now & Get a Free Trial.
www.AutomationAnywhere.com/IT- Note: If you are not able to locate the file, try using Search option.
- Note: If you are not able to locate the file, try using Search option.
- 2Once the file is located, right-click on it and choose properties and remove(uncheck) all the attributes of the file or folder.
- 3Make a note of the file location.
- 4Open a Command Prompt Window. You can do this by Clicking on Start, Run, and type CMD and Press Enter.
- 5Leave the Command Prompt window open, but proceed to close all other open programs.
- 6Open the Windows Task Manager. You can do this in two ways :
- Click on Start, Run and type TASKMGR.EXE and press Enter.
- Press CTRL+ALT+DEL.
- Click on Start, Run and type TASKMGR.EXE and press Enter.
- 7Click on the Processes tab of the Windows Task Manager, click on the process named Explorer.exe and click on End Process and minimize Task Manager but leave it open.
- 8Go back to the Command Prompt Window and follow the Sub-Steps to delete a file or folder. You can follow the example below.
- 9To DELETE a FILE :
Assuming that your "My Documents" folder contains a file called "myFile.exe" which needs to be deleted.Follow the steps given below :- In Command Prompt window you will find a path :
C:\Documents and Settings\XYZ>
(where XYZ is the name of User Account). - Execute the following command in Command Prompt window : cd My Documents
(C:\Documents and Settings\XYZ>cd My Documents) - Now the path will be changed and it will look like :
C:\Documents and Settings\XYZ\My Documents> - Now use the DEL command to delete the offending file in Command Prompt Window.
Syntax : Type DEL(where is the file you wish to delete).
Example: C:\Documents and Settings\XYZ\My Documents>del myFile.exe
- In Command Prompt window you will find a path :
- 10To DELETE a FOLDER :
Assuming that your "My Documents" folder contains another folder called "New Folder" which needs to be deleted.Follow the steps given below :- In Command Prompt window you will find a path :
C:\Documents and Settings\XYZ>
(where XYZ is the name of User Account). - Now use the RMDIR /S /Q command to delete the offending folder in Command Prompt Window.
Syntax : Type RMDIR /S /Q "" (where is the Location of folder you wish to delete).
Example: C:\Documents and Settings\XYZ>rmdir /s /q "C:\Documents and Settings\XYZ\My Documents\New Folder"
- In Command Prompt window you will find a path :
- 11Use ALT+TAB to go back to Task Manager. In Task Manager, click File, New Task and enter EXPLORER.EXE to restart the Windows shell.
- 12Close the Task Manager. The file should now be deleted
.
No comments:
Post a Comment