Friday, February 13, 2015


attrib -H -S /D /S
That will remove the hidden and system attributes from all the files/folders inside of your current directory.

attrib -r -s -h /S /D
this command will remove attrubutes for all files folders and subfolders:
-read only -system file -is hidden -Processes matching files and all subfolders. -Processes folders as well

just type
attrib -h -r -s /s /d j:*.*
where j is the drive letter... unlocks all the locked stuff in j drive
if u want to make it specific..then go to a specific location using cmd and then type
attrib -h -r -s /s /d "foldername"
it can also be used to lock drives or folders just alter "-" with "+"
attrib +h +r +s /s /d "foldername"

To launch command prompt in administrator mode
  1. Type cmd in Search and hold Crtl+Shift
  2. Type attrib -h -r -s /s /d "location of the drive letter:" \*.*

To make a batch file for its current directory and sub directories:
cd %~dp0
attrib -h -r -s /s /d /l *.*

For example folder named new under E: drive
type the command:
e:\cd new

e:\new\attrib *.* -s -h /s /d
and all the files and folders are un-hidden

No comments:

Post a Comment