To the Devil, Mr. Gates - being used error

  • Thread starter Thread starter Janitor
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion centers around an error message encountered in Windows when attempting to rename a folder, specifically the message indicating that the folder is "being used by another person or program." Participants explore potential causes and solutions for this issue, including system behavior and software tools, with a focus on technical aspects and user experiences.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant describes experiencing the error frequently and expresses frustration, noting that rebooting is the only solution they have found.
  • Another participant suggests using the command 'lsof' in Linux to identify processes accessing files and mentions a Windows equivalent called "handles."
  • A different participant recommends using a tool from Sysinternals to identify and potentially close file handles that are preventing folder renaming.
  • One suggestion is to disable the preview feature in Windows, as it may cause the operating system to access files for generating previews, leading to the error.
  • Another participant shares their experience with a similar issue, attributing it to a bug in Windows XP where old DOS-based executables remain locked when their containing folder is opened.
  • There is a mention of the need to reboot to release file handles, especially when dealing with files on the desktop, which complicates deletion.
  • A participant expresses skepticism about the graphical interface of Windows, suggesting it leads to such issues, and proposes that using Linux could be a better alternative.

Areas of Agreement / Disagreement

Participants express a range of experiences and solutions, but there is no consensus on a single definitive solution to the problem. Multiple competing views on the causes and remedies for the error remain present.

Contextual Notes

Some participants reference specific tools and commands that may not be universally applicable, and there is mention of bugs that may vary by Windows version. The discussion reflects a variety of user experiences and technical insights without resolving the underlying issues.

Janitor
Science Advisor
Messages
1,108
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.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K