To the Devil, Mr. Gates - being used error

  • Thread starter Thread starter Janitor
  • Start date Start date
  • Tags Tags
    Error
AI Thread Summary
The "being used" error in Windows occurs when attempting to rename a folder that is reportedly in use by another program, often requiring a reboot to resolve the issue. Users suggest utilizing tools like Sysinternals' Process Explorer to identify and close open file handles that may be causing the problem. Disabling the preview feature in Windows Explorer can also prevent the error by stopping the OS from trying to generate previews for files. Additionally, a bug in Windows XP causes old DOS-based executables to remain locked when their containing folder is opened, complicating deletion without a reboot. Overall, these issues highlight the challenges of file management in Windows systems, particularly with legacy applications.
Janitor
Science Advisor
Messages
1,107
Reaction score
1
To the Devil, Mr. Gates - "being used" error

This error message comes up about 20 percent of the time that I try to change the name of a folder--for instance if I try to rename a folder called gemini_rendezvous, I get: "Cannot rename gemini_rendezvous: it is being used by another person or program. Close any programs that might be using the file and try again." But I am not using anything within the folder. The only solution I have found is reboot. Does anybody else feel my pain?
 
Computer science news on Phys.org
In Linux and other *nix systems, you have a command called lsof(list open files), it can tell you what processess are accessing and using a file/folder/device etc.

If you search, you might be able to find something similar for Windows. A quick google search produced something called "handles", might have a look at that.
 
I find that http://www.sysinternals.com/ntw2k/freeware/procexp.shtml is useful. You can use it to find what program(s) are holding a file handle, and you can forcibly kill the handle if necessary.
 
Last edited by a moderator:
Turn off the preview feature. When you select a file or folder in MS with preview enabled the OS tryes to generate said preview. Generating this preview is essentially using the file or folder. If you turn off preview(or wait a few moments for the preview to appear) you shouldn't get the error anymore.

I just ran into this myself while trying to 'fix' my dad's computer. He was having the same problem.
 
Thanks all for the advice. I expect one or more of those procedures will lick the problem the next time it comes up.
 
Personally id just get linux :)
Ive just had to reformat my windows partition on this computer for about the 11th time since I've had it... probably more, i aint exageratting
 
Occasionally, a crashed program will keep a handle open. Windows generally cleans up handles of forcibly killed processes, but sometimes that doesn't quite work. The only solution in such a case is a reboot.

There is another, very annoying bug in windows xp related to this. The shell (explorer.exe) will LOCK old DOS-based executables (.exe) whenever you open their containing folder in an Explorer/My Computer window. I think it has something to do with the fact that it tries to open the file to show an icon (stupid made-for-noobs graphical OS), doesn't find icons, and then... fails to close it? This doesn't happen for Win32 executables.

In any event, you will NOT get rid of this file handle once you've opened the directory. The handle will remain open until you reboot. To delete the file, you have to reboot and delete it from a command prompt or some other utility. If you're unfortunate enough to place such a file on the desktop, you're out of luck - the desktop is always opened before you can do anything. You'll never be able to delete it unless you reboot in - get this - safe mode with command prompt. (Or you can delete it by booting a different OS / partition).

Come to think of it, I should probably report this...
 
zefram_c said:
There is another, very annoying bug in windows xp related to this. The shell (explorer.exe) will LOCK old DOS-based executables (.exe) whenever you open their containing folder in an Explorer/My Computer window. I think it has something to do with the fact that it tries to open the file to show an icon (stupid made-for-noobs graphical OS), doesn't find icons, and then... fails to close it? This doesn't happen for Win32 executables.

In any event, you will NOT get rid of this file handle once you've opened the directory. The handle will remain open until you reboot. To delete the file, you have to reboot and delete it from a command prompt or some other utility. If you're unfortunate enough to place such a file on the desktop, you're out of luck - the desktop is always opened before you can do anything. You'll never be able to delete it unless you reboot in - get this - safe mode with command prompt. (Or you can delete it by booting a different OS / partition).

Come to think of it, I should probably report this...

That actually sounds pretty serious; but if your analysis of the bug really is correct then the tool I posted a link to will allow you to close any file handles that are being held on those DOS files, without having to leave the operating system. You should be able to delete the files at that point.
 
Back
Top