docs

Home All functions Categories

vuSetAttributes(FileMask, ReadOnly, Hidden, System, Archive)

vuSetAttributes(*CSTRING,LONG,LONG,LONG,LONG), Signed

Description

Sets or resets file attributes for the specified file or group of files. Wildcards are supported.

Parameters

Parameter Data Type Description
FileMask CSTRING(256) Fully qualified path and filename. Wildcards (*.*) are allowed.
ReadOnly LONG 0 = Reset, 1 = Set the ReadOnly attribute.
Hidden LONG 0 = Reset, 1 = Set the Hidden attribute.
System LONG 0 = Reset, 1 = Set the System attribute.
Archive LONG 0 = Reset, 1 = Set the Archive attribute.

Returns

A LONG value:

Example

FileMask = 'C:\Valutilities\*.*'

! Reset ReadOnly, Hidden, System and Set Archive on all files in folder
vuSetAttributes(FileMask, 0, 0, 0, 1)

Notes

Home All functions Categories