• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8924
  • Last Modified:

C# delete locked file

How do I programmatically force-delete a file that has some handles still on it? I know there are tools out there to do this, but I'd like a C# solution.

1 Solution
Gary DavisDir Internet SvcsCommented:
How about shelling out to one of those tools and let it do the work?

See System.Diagnostics.Process()

Gary Davis

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now