Solved

Override Windows file lock

Posted on 2013-10-30
5
494 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
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

770 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