to delete a file that is in use, you first rename the current file to a temp
name and then delete the current and the renamed file.
--
Regards,
Alvin Bruney
[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Dale" <da************@msndotcomNot.Net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
Put the data in a database and delete the old records on a schedule.
Dale Preston
MCAD, MCSE, MCDBA
"Andrew" <So******@nowhere.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl... Ive created a web app. which has a web.config file that automatically
creates a text listener file for my Application trace. Over time this
file
will grow and I want to understand how best to manage it. Ive tried
deleting it but windows complains that it is in use. This is even the case when I
stop IIS. The only way Ive found of deleting the file is by Rebooting the
machine and deleting it before I run my app.
So my question is - what is the best approach for managing these System
Diagnostic listener files?
Thanks
Andrew