<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>Nifty file utility that every developer can use</title>
		<link>https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/29178" rel="self" type="application/rss+xml" />
		<description>Speednet's Blog: Nifty file utility that every developer can use</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Comment #1</title>
			<link>https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm#c36021</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm#c36021</guid>
			<pubDate>Wed, 22 Apr 2009 16:37:33 GMT</pubDate>
			<dc:creator>truecritic</dc:creator>
			<description><![CDATA[<p>&#x3c;br /&#x3e;UNLOCKER 1.8.7 BY CEDRICK &#x27;NITCH&#x27; COLLOMB: &#x3c;br /&#x3e;http://ccollomb.free.fr/unlocker</p>]]></description>
			<category>truecritic</category>
		</item>
		<item>
			<title>Original Blog Entry: Nifty file utility that every developer can use</title>
			<link>https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm</guid>
			<pubDate>Wed, 22 Apr 2009 02:08:44 GMT</pubDate>
			<dc:creator>Speednet</dc:creator>
			<description><![CDATA[<p>Here&#x27;s a scenario faced by practically every developer at one time or another: you want to delete a file, but it refuses to delete because Windows sees the file as locked by another user.<br /><br />Sometimes this can be a real file lock, when a user on a different computer does actually have the file open, or sometimes it can be file-locking junk left over when a computer that did have a lock crashed or suddenly closed an application.<br /><br />There has never been a simple unlock command to get rid of the file lock (in order to delete the file), no matter why it&#x27;s being locked, leading to a cavalcade of utilities to work around the problem.<br /><br />The classic utilities that you&#x27;ll come across when searching for keywords like force delete are programs that delete the locked file at the next boot.<br /><br />But what a pain in the neck that is! I refuse to install one of those programs, because I always have many programs running, and a fresh boot, done merely to delete a file, is just too painful.<br /><br />Over the years this issue has been a major gripe with me, which is why I was so happy to finally find a good solution this evening. And the thing is that the utility has been around since 2006.<br /><br />The utility is called PsFile, and is a part of the brilliant SysInternals suite of utilities created by Mark Russinovich.<br /><br />Frustratingly, I&#x27;ve looked through SysInternals in the past seeking this same solution, but I always overlooked PsFile because the option to do the unlocking is so subtlely mentioned in the documentation. It comes off as a utility merely to see who has a file open not a utility to actually close the file/lock.<br /><br />In my frustration of trying to unlock a file this evening, I had downloaded PsFile just to give me an idea of who/what was holding the lock. I ran the program and saw the file lock, but then looking back at the documentation I noticed a little -c command line option. The documentation states, -c : Closes the files identified by ID or path. Wow!<br /><br />I gave the option a try, specifying the ID number of the file (which was shown simply by typing PsFile at the command prompt), and the file was instantly closed. Awesome!<br /><br />The exact syntax of the unlock is:<br /><br />PsFile 1234 -c (1234 is replaced by the actual file ID, or can be a path name)<br /><br />The PsFile utility can be found (and downloaded) here: http://technet.microsoft.com/en-us/sysinternals/bb897552.aspx<br /><br />One of the things I love about all the SysInternals utilities is that there is no installation needed. Just unzip the download and copy the included .exe file to your hard disk, and then run it.<br /><br />SysInternals is extensive and indispensable, and its home page can be found here: http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx<br /><br />I hope this helps anyone who&#x27;s experienced a similar problem!<br /><br />... &#x5b;&#xa0;<a href="https://blogs.lotterypost.com/speednet/2009/4/nifty-file-utility-that-every-developer-can-u.htm">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>Speednet</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/29178</wfw:comment>
		</item>
	</channel>
</rss>

