Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set file permissions in windows through the command prompt mode?

How to set the same file permissions in windows through the command prompt mode ?

like image 865
Sulthan Allaudeen Avatar asked Sep 13 '13 06:09

Sulthan Allaudeen


1 Answers

>attrib /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
       [/S [/D]]

  +   Sets an attribute.
  -   Clears an attribute.
  R   Read-only file attribute.
  A   Archive file attribute.
  S   System file attribute.
  H   Hidden file attribute.
  [drive:][path][filename]
      Specifies a file or files for attrib to process.
  /S  Processes matching files in the current folder
      and all subfolders.
  /D  Processes folders as well.
like image 141
Ilya Avatar answered Oct 03 '22 04:10

Ilya