Unlock a file with unlocker from a WinForms App?

Posted by netadictos on Stack Overflow See other posts from Stack Overflow or by netadictos
Published on 2008-11-29T15:02:54Z Indexed on 2010/03/28 23:03 UTC
Read the original article Hit count: 320

Filed under:
|
|
|

I am trying to unlock a file from a C# program, using unlocker.

In my UI, I put a button to unlock the file the app couldn't delete. When the user pushes the button, I want unlocker (the famous app) to be opened.

I have read about in the Unlocker web, and there is some explanations about the commandline to use but nothing works.

I write the following code but nothing happens:

"c:\Program Files\unlocker\unlocker.exe" -L "PATHFORTHEFILE.doc"

Nothing happens. I have tried without parameters and with -LU.

Any idea?

Something more efficient than unlocker to integrate it with software?

© Stack Overflow or respective owner

Related posts about c#

Related posts about file-locking