Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can use this program, <a href="http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx" rel="nofollow noreferrer">Handle</a>, to find which process has the lock on your file. It's a command-line tool, so I guess you use the output from that... I'm not sure about finding it programmatically.</p> <p>If deleting the file can wait, you could specify it for deletion when your computer next starts up:</p> <ol> <li><p>Start <code>REGEDT32 (W2K)</code> or <code>REGEDIT (WXP)</code> and navigate to:</p> <pre><code>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager </code></pre></li> <li><p>W2K and WXP</p> <ul> <li><p><strong>W2K:</strong><br/>Edit<br/>Add Value...<br/>Data Type: <code>REG_MULTI_SZ</code><br/>Value Name: <code>PendingFileRenameOperations</code><br/><kbd>OK</kbd></p></li> <li><p><strong>WXP:</strong><br/>Edit<br/>New<br/>Multi-String Value<br/><kbd>enter</kbd><br/> <code>PendingFileRenameOperations</code></p></li> </ul></li> <li><p>In the Data area, enter <code>"\??\" + filename</code> to be deleted. LFNs may be entered without being embedded in quotes. To delete <code>C:\Long Directory Name\Long File Name.exe</code>, enter the following data:</p> <pre><code>\??\C:\Long Directory Name\Long File Name.exe </code></pre> <p>Then press <kbd>OK</kbd>.</p></li> <li><p>The "destination file name" is a null (zero) string. It is entered as follows:</p> <ul> <li><p><strong>W2K:</strong><br/>Edit<br/>Binary<br/>select Data Format: Hex<br/>click at the end of the hex string<br/>enter 0000 (four zeros)<br/><kbd>OK</kbd></p></li> <li><p><strong>WXP:</strong><br/>Right-click the value<br/>choose "Modify Binary Data"<br/>click at the end of the hex string<br/>enter 0000 (four zeros)<br/><kbd>OK</kbd></p></li> </ul></li> <li><p>Close <code>REGEDT32/REGEDIT</code> and reboot to delete the file.</p></li> </ol> <p><sup>(Shamelessly stolen from <a href="http://www.pcreview.co.uk/forums/thread-1581158.php" rel="nofollow noreferrer">some random forum</a>, for posterity's sake.)</sup></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload