Re: deleting a file, even if it is being used by another person or process
From: Charles Law (blank_at_nowhere.com)
Date: 12/23/04
- Next message: Cor Ligthert: "Re: Msword"
- Previous message: OHM \( Terry Burns \): "Sorry"
- In reply to: shandra_at_igmax.com: "deleting a file, even if it is being used by another person or process"
- Next in thread: Cor Ligthert: "Re: deleting a file, even if it is being used by another person or process"
- Reply: Cor Ligthert: "Re: deleting a file, even if it is being used by another person or process"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 09:56:59 -0000
You could have a look at WhoLockMe at
http://www.dr-hoiby.com/WhoLockMe/
to find out the process that has the lock.
HTH
Charles
<shandra@igmax.com> wrote in message
news:1103754856.876536.239580@f14g2000cwb.googlegroups.com...
>I have a file I need to delete or truncate. I tried using the KILL
> command in VB6. I tried using the file.delete command in VB.net. I
> tried manually deleting, renaming, and copying over the file... but
> nothing works.
>
> I keep getting the error: Cannot delete access_log: it is being used by
> another person or program.
>
> I tried shutting down services, I tried killing processes using the
> task manager, I tried rebooting, and still, I get the same error.
>
> Is there a way to delete a file regardless of who is using it? My
> preference is to use VB because eventually I need to automate this task
> to happen daily, but I'm really open do anything that works! Doesn't
> it seem there was an old command years ago in DOS that would do it?
> XDEL or DELTREE or something like that?
>
> Is there a way to pinpoint which process is holding this file hostage?
> Does anyone have any tricky tricks up their sleeves I might try?
>
- Next message: Cor Ligthert: "Re: Msword"
- Previous message: OHM \( Terry Burns \): "Sorry"
- In reply to: shandra_at_igmax.com: "deleting a file, even if it is being used by another person or process"
- Next in thread: Cor Ligthert: "Re: deleting a file, even if it is being used by another person or process"
- Reply: Cor Ligthert: "Re: deleting a file, even if it is being used by another person or process"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|