home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / FileSetAttrib.au3 < prev    next >
Text File  |  2004-09-22  |  343b  |  8 lines

  1. ;mark all .au3 files in current directory as read-only and system
  2. FileSetAttrib("*.au3", "+RS")
  3. If @error Then MsgBox(4096,"Error", "Problem setting attributes."
  4.  
  5. ;make all .bmp files in C:\ and sub-directories writable and archived
  6. FileSetAttrib("C:\*.bmp", "-R+A", 1)
  7. If @error Then MsgBox(4096,"Error", "Problem setting attributes."
  8.