SetFileAttributes

SetFileAttributes(name: stringa, attrString: stringa) → nil

Imposta gli attributi di un file. - <name> e' il nome del file - <attrString> e' una stringa tipo "+A-R" che usa le lettere di GetFileAttributes, '+' aggiunge, '-' rimuove l'attributo.

 

Esempio 1. Esempio SetFileAttributes

SetFileAttributes("C:\\dati\\output.txt", "R")   -- sola lettura