Delete In Use File
-
I have a need to build a class that can unlock in use files so that they can be deleted. I need to do this from within my code without using any third party executables. Preferably in VB.Net or C#.NET with the help of pinvoke for any api calls. Any sugestions or existing source would be a great help.
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
-
I have a need to build a class that can unlock in use files so that they can be deleted. I need to do this from within my code without using any third party executables. Preferably in VB.Net or C#.NET with the help of pinvoke for any api calls. Any sugestions or existing source would be a great help.
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
Why would you want to do this? So you can crash the app that has the file open? That's about the only end result you're going to get.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I have a need to build a class that can unlock in use files so that they can be deleted. I need to do this from within my code without using any third party executables. Preferably in VB.Net or C#.NET with the help of pinvoke for any api calls. Any sugestions or existing source would be a great help.
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
Here you are: Deleting Locked Files[^]
Giorgi Dalakishvili #region signature my articles #endregion
-
Here you are: Deleting Locked Files[^]
Giorgi Dalakishvili #region signature my articles #endregion
Thanks, I will give this a try :)
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
-
Thanks, I will give this a try :)
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
Glad to help you.
Giorgi Dalakishvili #region signature my articles #endregion
-
Glad to help you.
Giorgi Dalakishvili #region signature my articles #endregion
Had to make some small modifications, but this worked perfectly for what i needed. Thanks alot
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
-
Had to make some small modifications, but this worked perfectly for what i needed. Thanks alot
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)
You are welcome :)
Giorgi Dalakishvili #region signature my articles #endregion
-
Why would you want to do this? So you can crash the app that has the file open? That's about the only end result you're going to get.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008I love the way half of the people on here seem to think they know more than everyone else and feel the need to tell you that what your doing is wrong and yet not offer a solution before they even take the time to ask what it is your really trying to do...your not someone special that we all need to here your words of wisdom and be corrected on what we are doing...I'm working on a project where it is at times necessary to delete a file that is in use if you can help(i don't need it anymore), then please do, if not, then don't go running around being the hallway monitor to see if anyone is running
-- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)