windows 克服“它正在被另一个人或程序使用”。
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/229851/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Overcoming "It is being used by another person or program."
提问by Adrian Dunston
Is there a way to unlock Windows files without downloading a utility?
有没有办法在不下载实用程序的情况下解锁 Windows 文件?
I have a few files on my Windows XP C: drive that are very old and very useless. When I try to delete these files I get the following message:
我的 Windows XP C: 驱动器上有一些非常旧且无用的文件。当我尝试删除这些文件时,我收到以下消息:
Cannot delete FILENAME.zip: It is being used by another person or program Close any programs that might be using the file and try again.
No one is accessing this file. No program is using it currently. Windows has screwed up the file locking mechanism.
没有人访问此文件。目前没有程序在使用它。Windows 搞砸了文件锁定机制。
Is there a way to delete this file without downloading someone's unlocking utility? I find the sites offering these programs to be a tad sketchy.
有没有办法在不下载某人的解锁实用程序的情况下删除此文件?我发现提供这些程序的网站有点粗略。
How could you force the file to unlock from within a program? I'm competent in Java, Perl, and Ruby, but I haven't seen anything among their libraries that would aid me here.
你怎么能强制文件从程序中解锁?我精通 Java、Perl 和 Ruby,但我在他们的库中没有看到任何可以帮助我的东西。
回答by Dan Goldstein
I've successfully used Process Explorer to find out which process has the file open. It saves a reboot that may not fix the problem anyway.
我已经成功地使用 Process Explorer 找出打开了文件的进程。它节省了重新启动,无论如何都可能无法解决问题。
回答by Pradeep
Try downloading "Unlocker". Google it and take my words that it doesn't have any worm/spyware/virus. It is pretty cool utility and works great. Give it a try.
尝试下载“解锁器”。谷歌一下,相信我的话,它没有任何蠕虫/间谍软件/病毒。这是一个很酷的实用程序,效果很好。试一试。
回答by Brian Schmitt
回答by branchgabriel
Use msconfig and start up with everything turned off.
使用 msconfig 并在关闭所有内容的情况下启动。
Then try to move / delete the file.
然后尝试移动/删除文件。
Or you can always boot up in safe mode and delete it.
或者您可以随时以安全模式启动并删除它。
You do that by hitting f8 when the machine boots up.
您可以通过在机器启动时按 f8 来实现。
回答by EBGreen
If you reboot and the files are still locked, then there is some process on your machine that isstill using them. First you should figure out what that process is and determine if the files really aren't used any more or not.
如果重新启动和文件仍然锁定,再有就是你的机器上的一些过程,是仍然使用他们。首先,您应该弄清楚该过程是什么,并确定这些文件是否真的不再使用。
回答by MrZebra
Rebooting to Safe Mode is often a very easy way to do it. When you boot in safe mode, it won't load all the stuff set to run on startup. Press F8 while it's booting to access the boot menu, and choose "safe mode".
重新启动到安全模式通常是一种非常简单的方法。当您以安全模式启动时,它不会加载所有设置为在启动时运行的内容。开机按F8进入开机菜单,选择“安全模式”。
回答by Steve
I had a .jpg pfile that hasd that issue and I couldn't delete. That brought me to this thread. When nothing else worked I renamed the file and left off the .jpg. THEN I could delete it easily. Not sure why, but worked for me
我有一个 .jpg pfile 有这个问题,我无法删除。这让我想到了这个话题。当没有其他工作时,我重命名了文件并离开了 .jpg。然后我可以轻松删除它。不知道为什么,但对我有用
回答by Steve
You don't need any utility. Just use Win32 api to unlock them (simply close the handle)
您不需要任何实用程序。只需使用 Win32 api 来解锁它们(只需关闭手柄即可)