EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

setfileattrib

Set file attributes.

func uint setfileattrib (
   str name,
   uint attrib
)

Parameters

name Filename.
attrib File attributes.
$FILE_ATTRIBUTE_READONLYRead-only.
$FILE_ATTRIBUTE_HIDDENHidden.
$FILE_ATTRIBUTE_SYSTEMSystem.
$FILE_ATTRIBUTE_DIRECTORYDirectory.
$FILE_ATTRIBUTE_ARCHIVEArchive.
$FILE_ATTRIBUTE_NORMALNormal.
$FILE_ATTRIBUTE_TEMPORARYTemporary.
$FILE_ATTRIBUTE_COMPRESSEDCompressed.

Return value

If the function succeeds, the return value is 1. If the function fails, the return value is 0.

Related links

Source