Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[tut]*** how to delete a folder that cannot be deleted ***

deidi

Recruit
Basic Member
Messages
13
Reaction score
0
Points
16
*** HOW TO DELETE A FOLDER THAT CANNOT BE DELETED ***



• Reboot

Reboot, then delete.




• DEL or RMDIR

Open a command line window (WindowsKey + R, enter: cmd). Move to the folder in question by means of CD commands like CD \ and CD foldername.

Delete the file or folder by using the DEL command to delete files or the RMDIR (remove directory) command to remove directories (folders).




• Kill explorer.exe

If this, on its own, is still not enough, then leave the command line window on the desktop, open Task Manager (Ctrl + Shift + Esc), and kill all explorer.exe tasks. Your desktop will go blank, except for the windows already open.

Now try to delete the offending file by means of the DEL command, or folder by means of the RMDIR (remove directory) command, in the command line window, as described above.

After that, in the command line window enter:

explorer

to restart your desktop. If you closed the command line window, you can still restart explorer by opening the Task Manager by holding down the Ctrl and Shift keys and briefly pressing the Esc key. In Task Manager select Applications, New Task and enter: explorer




• Log off

If the previous method fails, particularly with multimedia files, log off, then log on again, but do not select the file in Windows Explorer. The safest way is not to open Windows Explorer in the first place.

Then try the previous method again.




• Reboot again

An even stronger measure would be to reboot, then try the previous methods again. This would work, for example, if a service has the file open.




• Delete containing folder

[Thanks to John Barrington:] If you can't delete a problem file, try deleting the folder that contains the problem file. If this doesn't work, try this next item.

If the problem file and its folder, we'll call (A), is within another folder, we'll call (B), try to delete the folder (B) along with any troublesome contents.

Of course, you want to make sure, if you have any other important files or folders within either folder, that they are saved in another location first.




• Use RMDIR on containing folder

Begin like the previous method, but try also

rmdir /s foldername

(replace foldernamewith the name of the folder to be deleted). This command should delete a folder with all its subfolders.

If the folder name contains one or more spaces, enclose it in quotes. Example:

rmdir /s "folder name"

Note that the abbreviated command rd can be used in place of rmdir.




• Use short name

If the folder name contains strange characters, use a command line window again, but use the DIR /X command to find the short name (for example: PROGRA~1) and use the short name instead. The short name is DOS compatible and has no more than 8 characters for the main name, a period, then no more than 3 characters for the extension.

Retry the previous methods that use a command line window, but use the short name now.

Note: Sometimes an illegal file name can cause Windows Explorer to use nearly 100% of the CPU time.

[Thanks to astk1:] Sometimes the abbreviated name can have a number other than one and can have an extension. If the above does not work, proceed as follows.

1. Open a command line window (Start, Run, type: cmd, press the return/enter key).
2. Navigate to the folder using "cd .." and "cd pathname", where pathname is the name of the next subfolder you want to go into.
3. Type dir /x to see the actual real short name of the subdirectory. Critically: This may include an extension, e.g. "ABDCEF~1.XYZ".
4. Type "rmdir /s abcdef~1.xyz", replacing the example name abcdef~1.xyz with your actual folder name.




• Safe mode

Boot into safe mode and try to delete the file or folder there.




• Stop program

If you're trying to delete a program file, like one with the extension .exe, the cause could be that the program is currently running. Stop it, then delete the file.

If the program starts automatically, check the article Autorun causes on how to remove the start command. Do it, reboot, then delete the file.




• Rename or move during next boot

If this also doesn't work, there is a way to rename or move a file or folder during the boot process. For this you need to use the registry editor REGEDIT.EXE. See the Registry warning for a general warning.

Create an entry in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Session Manager\

named PendingFileRenameOperations of type REG_MULTI_SZ. In pre-XP Windows versions you have to use REGEDT32.EXE to create this value type.

The first line of each pair is the current file or folder path and name with \??\ in front of it.

The second line of each pair is the new file or folder path and name with !\??\ in front of it.

Example for one pair which moves the file mfc42.dll from the temp folder to the system32 folder and overwrites any existing file at the destination:

\??\C:\TEMP\mfc42.dll
!\??\C:\WINDOWS\system32\mfc42.dll

You can add as many pairs as you like. The move operation is performed directly after the next reboot. You can also give folder paths, so the folder will be renamed. But both paths have to be local.

There is a Windows API call for this, named MoveFileEx, and somebody in Germany has even written a utility named MoveEx for it. You can download it from http://wwwthep.physik.uni-mainz.de/~frink/nt.html. Use it if you need this function often. A Posix utility from a Windows Resource Kit named mv.exe also does it, just in case you still have the resource kit around.




• Use another operating system

Boot into another operating system to delete the file from there. The other operating system can be, for example, another installation of Windows, BartPE, Knoppix, Ubuntu, or any operating system that can read the file system used (NTFS or FAT32).




• Connect hard disk to other computer

Remove the hard disk from the computer and connect it to another computer. Delete the files or folders there.




• Use unlock utility

If you cannot delete a file or folder because it is in use, you can use one of the mostly free utilities, such as Unlocker.




• Shorten names

If the cause is that the path and file name is too long, first try to rename folders in the path with shorter names.

If that doesn't work, you can use the following method, reported 2007-05-17 by Mark Briody:

Open a command line window and use the subst command to create a virtual drive to the folder containing the long file name, e.g. (all in one line):

subst x: "C:\Documents and Settings\briodym\Favorites\Mark\Gadgets and Hardware\Hardware\Stores\eBuyer"

Then change to the virtual drive x:, and you should be able to delete, rename, and move files and folders.

Finally, to clean up, remove the subst again with:

subst x: /d




• Deal with hidden or system files

[Thanks to warpcoil, who first described this method in a comment below]

This method deals with files that carry the hidden or system attribute. You can delete such files in Windows Explorer, if you set the folder options such that these files are shown in the first place, but the following method can delete them from a command line window.

Open a command line window and navigate to the offending folder by means of the cd command.

Show all files, using the attrib command. Note the attributes displayed as single letters on the left side of the listing:
Letter Attribute
R Read-only
H Hidden
S System

Delete the offending files with the commands:

del /f /a:s

del /f /a:h

Replace with the name of the offending file or files. You can use wildcard characters. For example, the following command:

del abc*.* /f /a:h

would delete all files whose names begin with abc and which carry the hidden attribute, regardless of the system or read-only attributes.

When it works you get no response, but typing attrib again will show that the file has gone.





• Access rights

aguggis wrote an excellent comment, outlining the following procedure for the common case that you do not have sufficient access rights to delete a folder or file. Thanks!

I was unable to access or delete a folder created by rsync on Windows XP, and none of the solutions proposed here worked. The simple but effective solution was the following:

1. Right click on the problem folder --> Properties.
2. Select the Security Tab.
3. Mark your username and authorize full control.
4. Apply and Ok.
5. Now you can delete the folder without problems.



sana po makatulong.. :D
HIT THANKS NMN JAN.. :D
:thumbsup:


[end.]
 
@all nagreply, thanks po sa dagdag na info.. :)

hehe... sana makatulong tong thread na to.. :D



[end.]
 
Nice TuT lately one of my PC di madelete yung Folder na "Games" especially pati un files inside all the method you post nagawa ko na specially un mga Unlocker Tools, File Shredder.

No Virus yung pc ko 100% clean. Try ko copy 1 folder sa Games then Paste ko sa desktop after nun delete ko ung nasa desktop ok naman. Sadya talaga nagkaproblem ako sa Administrator Rights ng nasabing Folder since di nakahighlight yung mga option at di ko ma configure kahit Admin account ako no choice kundi Delete Logical Drive ako then format. Ayaw kasi rekta format dahil nageerror so yun ang Best Option ko.

Share ko lang :)
 
Naranasanbko na to boss, i found out that my hdd has bad sector on it, what i did is run check disk and luckily file has been deleted
 
Naranasanbko na to boss, i found out that my hdd has bad sector on it, what i did is run check disk and luckily file has been deleted

salamat paps gumana, windows 10 pala gamit ko :)
 
Back
Top Bottom