Windows files attributes

Наскоро се занимавах с desktop.ini файловете – след като го редактирам, той ставаше видим, въпреки че системните файлове са скрити. Погледнах атрибутите на файла след редакцията – нямаше S (System).

За промяна на атрибутите на даден файл под Windows се използва attrib.exe: cmd -> attrib /?

C:\Users\Anatoliy Dilov\Downloads>attrib /?
Displays or changes file attributes.

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

+   Sets an attribute.
-   Clears an attribute.
R   Read-only file attribute.
A   Archive file attribute.
S   System file attribute.
H   Hidden file attribute.
I   Not content indexed 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.
/L  Work on the attributes of the Symbolic Link versus
    the target of the Symbolic Link

Крайният резултат за един desktop.ini файл трябва да изглежда така:

attrib +h +s +a desktop.ini
  1. No comments yet.
  1. No trackbacks yet.