S
shandra
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?
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?