Unlock files or folders using Unlocker

Introduction

Problem

Have you ever try to delete or move a file and Windows have just told you that the file can’t be deleted or moved because it is in used even you’re pretty sure that currently you aren’t using that file?

The error messages will look similar to below.

  • “Cannot move ‘file or folder’: It is being used by another person or program.
    Close any programs that might be using the file and try again.”
  • “Cannot delete ‘file or folder’: It is being used by another person or program.
    Close any programs that might be using the file and try again.”

    It is being used by another person or program
  • “Cannot delete ‘file’: Access is denied.
    Make sure the disk is not full or write-protected
    and that the file is not currently in use.”

    Access is denied
Cause

The cause is same as the error messages above have displayed which is someone or some program might be using the file. Let see some real scenarios which cause the problem.

  1. On a shared file or folder, the first user has opened the excel file and working on the file. Then, the second user wants to delete or move the file. The error will occurred showing that file is locked by other person.
    The file is locked by the other user
  2. On a local computer, Snare service which is a Windows service application has started using SnareCore.exe. Then, the user try to delete or move the file. The error will occurred.
    The file is locked by the other service
  3. On a local computer, you have uninstalled the application but its folder still persist and when you try to delete its folder. It shows that file is in used because the application may persists in the Windows process and locking the file.
  4. On a local computer, you have working on some application and the application was terminated unexpected. Then, you try delete the file or folder. It shows that file is in used because the application may persists in the Windows process and locking the file.
Solution
  1. There is a tool can unlock the locked file or folder. It it Unlocker (Free!). While I’m writing this article - 08/10/2008, the latest version is 1.8.7. You can download at my download page or you can visit UNLOCKER 1.8.7 BY CEDRICK ‘NITCH’ COLLOMB.
  2. Install the tool and you’ll see Unlocker Assistant icon in the Task bar.
    Unlocker Assistant
  3. Then, try to delete the locked file again. You’ll see the error message. Close the error message window.
    The file is locked
  4. The Unlocker tool will be shown which process is locked the file. Then, you can select whether to unlock the file or kill the process. If you don’t know what the process is doing, you shouldn’t kill process because it will end the application which depends on that process or it may be the process required by Windows. In that case, you can simply unlock the file and move or delete the file as you want.
    Unlocker tool
  5. To test if the file is locked, right-click on the file -> select Unlocker.
    Check if file is locked or not
  6. The Unlocker will tell if the file is locked or not.
    The file isn't locked
VMware 安装 mac os x 的解锁工具 Mac OS X Unlocker for VMware ============================ 1. Introduction --------------- The package is a combination of the Unlocker code written by Zenith432 plus some scripts written by myself that wrap the actual unlocker code. It has been tested against: * Workstation 8.0/9.0 on Windows and Linux (32 & 64-bit versions) * Player 4.0/5.0 on Windows and Linux (32 & 64-bit versions) * Fusion 4.0/5.0 on Snow Leopard and Lion * ESXi 5.0/5.1 The patch code carries out the following modifications dependent on the product being patched: * Fix vmware-vmx and derivatives to allow Mac OS X to boot * Fix vmwarebase .dll or .so to allow Apple to be selected during creation * Copy darwin.iso if needed to VMware folder Note that not all products recognise the darwin.iso via install tools menu item. You will have to manually mount the darwin.iso for example on Workstation. Also Player is missing vmware-vmx-debug and vmware-vmx-stats files and so an error is shown during patching as the files are not found. This can be safely ignored. In all cases make sure VMware is not running, and any background guests have been shutdown. 2. Windows ---------- On Windows you will need to either run cmd.exe as Administrator or using Explorer right click on the command file and select "Run as administrator". install.cmd - patches VMware and copies darwin.iso tools image to VMware uninstall.cmd - restores VMware and removes darwin.iso tools image from VMware 3. Linux --------- On Linux you will need to be either root or use sudo to run the scripts. You may need to ensure the contents of the linux folder have execute permissions by running chmod +x against the 4 files. install.sh - patches VMware and copies darwin.iso tools image to VMware uninstall.sh - restores VMware and removes darwin.iso tools image from VMware 4. Mac OS X ----------- On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the contents of the osx folder have execute permissions by running chmod +x against the 3 files. install.sh - patches VMware uninstall.sh - restores VMware 5. ESXi ------- ESXi has to be patched using the scripts, as the unlocker is used to overlay the ESXi firmware at runtime. You will need to transfer the files to the ESXi host either using vSphere client or SCP. Once uploaded you will need to either use the ESXi support console or use SSH to run the commands. Please note that you will need to reboot the host for the patches to become active. You may need to ensure the contents of the esxi folder have execute permissions by running chmod +x against the 3 files. install.sh - patches VMware uninstall.sh - restores VMware 6. Zenith432's Unlocker ----------------------- In all cases the unlocker can be run without the scripts but you would need to carry out additional actions which the scripts encapsulate for you especially on ESXi. If you want to run the unlocker directly the parameters are: Usage: ./Unlocker.Linux64 [-h] [-u] [target_directory] -h: print help -u: remove the patch target_directory: customize location of vmx executables On all platforms you must run it with administrator or root privileges. The source code is provided and Zenith432 makes it freely available for modification. In 1.1.0 I have modified the code and it is available as per Zenith432's original statement. Thanks to Zenith432 for building the unlocker and Mac Son of Knife for all the testing and support. Also to Albert Nietznie for original Workstation 7 code. History ------- 11/10/11 1.0.0 - First release 07/11/11 1.0.1 - Fixed typo in Windows command files 07/12/11 1.0.2 - Updated patcher and tools for latest release WKS 8.0.1 & FUS 4.1.1 10/05/12 1.1.0 - Changed the patching mechanism for vmwarebase .dll or .so & tested against ESXi 5.0 U1 and Tech Previews.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值