Re: api function for force delete a file.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 05/17/04


Date: Sun, 16 May 2004 23:25:56 -0400

This means that the file is still being held open. For example, this could mean that you
still have vestigial traces of the process. If the process is stopped in the debugger, it
hasn't terminated so the handles it has opened are not closed. You must (a) make sure you
have truly exited the program, and are not sitting in the debugger and (b) the process is
truly gone.

And no, you can't delete the file if it is still open,
                                        joe

On Sun, 16 May 2004 22:19:30 +0200, "Eitan" <no_spam_please@nospam.com> wrote:

>Hello,
>If a program that has opnenned a file crash with unknown reason, and I am
>trying to delete the file after that - the computer shout that the deleting
>causing sharing vialotation.
>Can I delete the file anyway (without restarting my computer) ?
>Is there any win-api function that does force-delete to the file ?
>
>Thanks :)
>

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm



Relevant Pages

  • Re: DllMain & DLL_PROCESS_ATTACH
    ... access fault is OK, Retry, Cancel, where Retry puts you in the debugger. ... but when I put same code in Win32 DLL project DllMain() it raises null ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Any way to view CPtrArray, CArray, etc in debugger?
    ... You can look into the array and find its data pointer and examine the ... CPtrArray arr; ... If I look at arr in the debugger, I can't see the contents of it... ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: VC6-Programm mit VS2005 - Stringprobleme
    ... Lass den Weg. ... Was passiert wenn es kracht dann und Du attached den Debugger. ... Martin Richter [MVP] WWJD http://blog.m-ri.de ...
    (microsoft.public.de.vc)
  • Re: SMQueueExceptionTimeout
    ... >Vielleicht weiß Andre noch etwas. ... Der scheint mir ein richtiger Debugger ... .NET Development ... Carsten Witte [MVP] ...
    (microsoft.public.de.vc)