Solved

Override Windows file lock

Posted on 2013-10-30
5
505 Views
Last Modified: 2013-11-13
Occasionally I get the following error: The process cannot access the file because it is being used by another process.

Is there any way to override this error?  Sometimes I get this error even though I am sure no process has a lock on my file or directory.  In such cases, it would be nice to reset the file lock and get on with life.
0
Comment
Question by:CFS_developer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39612648
You can try Unlocker. I had great results with it on XP. The last time I tried it on Windows 7, it didn't seem to work as intended, but perhaps there's been an update since then.
0
 
LVL 15

Expert Comment

by:Skyler Kincaid
ID: 39612671
Unlocker does work well. What kind of file is it? Is it a Word file or another Office file?

Sometimes the error is caused when you highlight the file and the preview is displayed on the right hand side of Windows Explorer.

Just an idea, let us know!
0
 

Author Comment

by:CFS_developer
ID: 39612737
I got this problem when redirecting program output:
perlProgram.pl > log

And then I called the perl program via a Sql Server job, and then I cancelled the job.  

Somehow that sequence leaves the log file locked.  

If it hurts don't do it is one obvious approach, but it would be nice to find a way to fix this situation when it comes up.  I'll try UnLocker and see what it does.
0
 
LVL 15

Expert Comment

by:Skyler Kincaid
ID: 39612895
Oh okay that situation makes more sense now.

Unlocker should be able to do what you need it to do. It has unlock and delete options.

I never like leaving Unlocker installed on a server if that is what you are using because it seems very Malwareish when you are installing it and downloading but I have never seen any  issues caused by it.
0
 

Author Closing Comment

by:CFS_developer
ID: 39646036
It's nice to solve problems.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question