Monday, September 29, 2008

Deleting access denied or password protected files

Well, I learn this tutorial from somewhere but don't remember the link

This technique is used to delete a password protected a.k.a access denied file using a CMD.exe

1. Click on Windows
2. Click Run
3. Type CMD
4. Leave the CMD there (don't close it I mean)
5. Press alt+ctrl+del (open the task manager)
6. Go to the "Processes" tab
7. "End process" for the "explorer.exe" (don't End Process Tree)
Note: After this step, you computer will become a bit funny, but the CMD should be remain there
8. Type something in the CMD.exe
9. Open the task manager again (press alt+ctrl+del)
10. Go to the "File" menu
11. Click on the "New Task (Run...)"
12. Type "explorer.exe" in the pop up thing after the step 11
Note: This is to disable the funny thing a.k.a restore the computer to default
13. Done!


Huh? "8. Type something in the CMD.exe"... LOL!
well, there it is

Step 8 details...


By using the CMD, go to the Path you want to delete... and delete it using the CMD
Finish!.

Lets make some case:
1. You install the Winzip in "C:\Program Files\Winzip".
2. Then you uninstall it (the uninstall is successful), but still leave the Winzip folder.
3. But then, you cannot delete the folder because of the one file inside it is protected


OK, the path is "C:\Program Files\Winzip".
to delete the folder ( not a file )
ensure the CMD path is "C:\Program Files>"
then type "rmdir Winzip"

p/s: If the delete is successful it should tell you nothing!
( not even a message like "hey yo, you delete teh Winzaip folder ya know." )

so just type "rmdir Winzip" again
and it will display "The system cannot find the file specified" means the folder is not exist a.k.a deleted!

To delete a file ( not a folder pls )

p/s: let say deleting folder "Winzip" is failed because there is a file called "You_Cannot_Delete_Me.exe" in the Folder.

so,
go to "C:\Program Files\Winzip>" in the CMD
then type "del You_Cannot_Delete_Me.exe".

Conclusion
1. Go to the Path using the CMD
2. Delete the file/folder
2.1 For folder is "rmdir"
2.2 For file is "del"



Thats all,
Hope its useful... guess not

Wednesday, September 10, 2008

User&Group Permission

Right click folder -> Properties -> Security tab

This is where the User and Group permission located

If you modify this thing incorrectly
A lot of funny error might occur like

  • Error 1772 Window Installer package
  • Cannot open/delete/edit the folder ( Access denied )
  • Ms-paint is running ( in task manager ) but not displaying

Above are all error I encounter while this User and Group setting is incorrect
And the folder was on my C:\WINDOWS

MANUAL WAY

To solve this,
Well... this is how I solve it

I fix it manually where I put again all my User&Group
The User&Group should be the same with the User&Group in the C:\Program Files

To add a Correct user
click the" advance" in the "security" tab


Using CMD to set up the ACL

type "cacls" for futher detail
but this is normal operation

make sure the path is in C:\>

then type exactly like this cacls WINDOWS /g "%usename%":F

well, the :F means "Full control"
the %username% is your username


Thats all,
hope its helpful... guess not