Command: FileAttrSet
- Updated2023-02-21
- 2 minute(s) read
Command: FileAttrSet
Sets file attributes.
Input Parameters
FSSourceName |
Specifies the source file or source folder for DIAdem file and folder commands. |
FSAttrType |
Specifies the file attribute or the folder attribute. |
Do not set or delete the "faOffline" property because these are files that were moved from an archiving system to an offline memory.
Example
The following example sets read-only for all VBS files in the SCRIPT user folder.
| VBScript | Python |
Call FileAttrSet(ScriptReadPath & "*.vbs","faReadOnly")
Related Topics
Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DirLstWrite | Command: FileAttrClear | Command: FileClose | Command: FileCloseAll | Command: FileCopy | Command: FileDateSet | Command: FileDelete | Command: FileMove | Command: FileOpen | Command: FileRename | Function: DataFileSize

