Jump to content

Recommended Posts

Posted

Hello there !

 

Many people complain how windows "doesn't trust them", simply by not letting them create or delete a certain file. There a few ways to delete user protected/system protected files, I'm only going to cover the system protected files.

 

Common way is to either use a software (ex. Unlocker, Ultimate Windows Tweaker ...etc) or the straightforward command takeown and then cacls, but these could get very complicated at times, because let's face it windows desn't handle permissions very well.

 

The attrib command might not work all the time, but you can delete some stubborn files such as hyberfil.sys file which holds the exact same amount of space as your ram, mine is 4gb so its size is 4gb, its function is to keep a copy of the ram when the computer goes in Hybernate state, you can delete it for extra space, you can google it if you're worried tongue.png, it can be deleted useing the following way:

 

My way !!

 

1 - Start CMD; start(windows logo) + R and type cmd and then enter.

 

2 - Go to the location of the file you want to control, (ex "C:\users\shocky\desktop\"), copy the path and do: cd "C:\users\shocky\desktop\" -> note: you must add "" if the path contains space

 

3 - Now you meet the command Attrib attrib here can show/change the attribute of a file, there are 3 attributes in Window: Hidden, System, archive and Read only, the important attribute is System any file that holds this attribute

 

cannot be deleted or seen. Using the command Attrib we can make most of windows files deletable,

 

4 - Now the syntax:

 

 

attrib "name of the file" -s -h -r

or:

attrib "C:\users\shocky\desktop\myfile.txt" -s -h -r

(the order is Important) and voila your file is no longer a system file, if it is permission protected, than it's a different case, the syntax is simple, "-h" means not hidden, and "+h" means hidden, h ->hidden, s -> system .... etc.

->note: you can skip step 2 and use the path of the file instead of the name.

 

5 - You can also check the files inside a folder by typing attrib only.

 

*Sum-up pic :

 

w9v1vm.png

 

Hiding your files :

 

1 - Instead of using -s -h -r, we use +s +h +r, this will make your file hidden, read only (cannot be modified), and a system protected file. (we all know what kind of file that is .....just saying not judging :pp)

 

 

attrib "C:/Files" +s +h +r

 

2 - To acces that file, ex. C:\Files\myfile.exe. Now that Files\myfile.txt is a hidden system file, you can access it through the file browser bar:

 

m8mm4z.png

 

3 - The reverse procces is obviously -s -h -r biggrin.png

 

Appologies for any mistakes or any lack of jokes tongue.png

Sincerly, Shocky

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.