0

Basically I want to do what Unlocker does, only from code. I want to unlock all access to a folder (and files under it / subfolders), so I can subsequently delete it.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
ripper234
  • 222,824
  • 274
  • 634
  • 905
  • Do you mean this: http://ccollomb.free.fr/unlocker/ ? (Quick answer: you need to manipulate other processes and, probably, kernel data structures. This is only going to be made harder from .NET because .NET does not expose the APIs you need or allow device driver creation.) – Richard Oct 07 '09 at 10:28
  • Yes, that's the one. I was looking for a ready library / tool, possibly in unmanaged code but callable from .Net. – ripper234 Oct 07 '09 at 14:12

1 Answers1

2

You could just run Unlocker from your .Net app.

Marcus Leon
  • 55,199
  • 118
  • 297
  • 429