Click here to Skip to main content
Sign Up to vote bad
good
See more: WindowsVB.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:47

Comments
aspnet_regiis -i - 15 Feb '13 - 3:23
Try decompiling the utility
Logi Guna - 16 Feb '13 - 15:00
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

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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 358
1 OriginalGriff 355
2 Arun Vasu 345
3 Maciej Los 208
4 Zoltán Zörgő 189
0 Sergey Alexandrovich Kryukov 9,755
1 OriginalGriff 7,559
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid