<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matt Refghi&#039;s Blog &#187; file locking</title>
	<atom:link href="http://mattrefghi.com/blog/tag/file-locking/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattrefghi.com/blog</link>
	<description>Computer Science and other written works</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:43:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>File Locking: Access Is Denied? Not Anymore.</title>
		<link>http://mattrefghi.com/blog/2009/06/file-locking-access-is-denied-not-anymore/</link>
		<comments>http://mattrefghi.com/blog/2009/06/file-locking-access-is-denied-not-anymore/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 19:58:36 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Recommendations]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[file locking]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[unlocker]]></category>

		<guid isPermaLink="false">http://www.mattrefghi.com/wordpress/?p=590</guid>
		<description><![CDATA[I&#8217;m sure most of you]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure most of you have encountered this type of error, at one time or another, while using Windows:</p>
<div id="attachment_591" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-591 " src="http://mattrefghi.com/wordpress/wp-content/uploads/2009/05/cannotdeletesdhelper.png" alt="The &quot;Error Deleting File or Folder&quot; dialog shown when you attempt to delete a file that is in use." width="320" height="165" /><p class="wp-caption-text">Cannot delete file: Access is denied.</p></div>
<p style="text-align: left;">It appears when you try to delete a file or folder that is currently in use by an application. To be completely accurate, the file needs to be <em>in use</em> and <em><a href="http://msdn.microsoft.com/en-us/library/aa365202.aspx">locked </a></em><a href="http://msdn.microsoft.com/en-us/library/aa365202.aspx">by the application</a> to prevent external edits &#8211; the <a href="http://en.wikipedia.org/wiki/File_locking#Unlocker_software">lock is likely the reason we see the error message</a>. Sometimes it is really obvious which application has a locked <a href="http://en.wikipedia.org/wiki/Handle_(computing)">handle</a> on the file &#8211; for example, if it is complaining about a Word document &#8211; perhaps the document is still open in Word. Personally, I consider scenarios like that acceptable because they can be solved easily; unfortunately, all too often I get into trickier situations where I can&#8217;t figure out <em>which </em>application is holding onto my file. In those cases, I used to just reboot, and that would <em>usually</em> solve the problem. Yet, there were still cases where rebooting didn&#8217;t even do the trick.</p>
<p style="text-align: left;">Eventually, I was tired of struggling in those moments, and began searching for an application that could help &#8211; that&#8217;s when I found <a href="http://ccollomb.free.fr/unlocker/">Unlocker</a>. It allows you to remove locks from individual files via an &#8220;Unlocker&#8221; option within the Windows context menu. Definitely a nice feature&#8230; but listen to this &#8211; they took it a step further via  a system tray program called Unlocker Assistant. If you encounter the &#8220;Access is denied&#8221; error while Assistant is loaded, Unlocker will <strong>automatically </strong>pop up a few seconds after you click &#8220;OK&#8221;, and it will show you the culprits:</p>
<p style="text-align: center;"><a href="http://mattrefghi.com/wordpress/wp-content/uploads/2009/06/unlockertotherescue.png" rel="lightbox[590]"><img class="aligncenter size-full wp-image-595" src="http://mattrefghi.com/wordpress/wp-content/uploads/2009/06/unlockertotherescue.png" alt="Unlocker Assistant showing the processes that have a hold on the locked file." width="470" height="363" /></a></p>
<p style="text-align: left;">From their interface, you have the option of either killing the process, or unlocking the files themselves &#8211; effectively breaking the hold the application has on the file <em>without </em>having to terminate it. Very handy. You can download <a href="http://ccollomb.free.fr/unlocker/#download">Unlocker </a>here.</p>
<p style="text-align: left;">If you&#8217;re more inclined to trust Microsoft-sanctioned applications, grab <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx">Process Explorer</a> &#8211; a <a href="http://technet.microsoft.com/en-us/sysinternals/default.aspx">Sysinternals</a> app. I didn&#8217;t try it for this purpose specifically, but from what I&#8217;ve read, it isn&#8217;t as simple as Unlocker when it comes to removing the &#8220;Access is Denied&#8221; error specifically. It serves multiple purposes, whereas Unlocker is specialized.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;linkname=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;linkname=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;linkname=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;linkname=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;counturl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;count=horizontal&amp;text=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." scrolling="no" style="border:none;overflow:hidden;width:130px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;counturl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;count=horizontal&amp;text=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." scrolling="no" style="border:none;overflow:hidden;width:130px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;size=medium&amp;count=true" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;size=medium&amp;count=true" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe><!--<![endif]--><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F06%2Ffile-locking-access-is-denied-not-anymore%2F&amp;title=File%20Locking%3A%20Access%20Is%20Denied%3F%20Not%20Anymore." id="wpa2a_2"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2009/06/file-locking-access-is-denied-not-anymore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

