Click here to Skip to main content
12,292,976 members (67,154 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB Windows VB.NET
Hello,
I am wondering if there is any tutorial/link for vb/c#/C++ to show me how to delete files and folders that are lockedby windows 7, to bypass ownership and errors such as "you must have the permission of ", I have downloaded a small free utility which is doing it correct but I am wondering how they do it.

Kyriakos
Posted 14-Feb-13 19:47pm
Comments
aspnet_regiis -i 15-Feb-13 3:23am
   
Try decompiling the utility
Logi Guna 16-Feb-13 15:00pm
   
If you use Unlocker, you would see that unlocker just try to find which process is locking a folder, and terminate that process. It's simpler as alternative if you fail when taking ownership (ERROR_ACCESS_DENIED)

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

you need to take ownership of the files protected by the OS.

Here[^] is described how to use the API's in C++
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100