National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 8 Utility Library
© National Instruments Corporation 8-67 LabWindows/CVI Standard Libraries
Return Value
result
integer Result of operation.
Return Codes
0
Success.
-1
Invalid drive number.
Using This Function
The mapping between the drive number and the logical drive letter is 0 = A, 1 = B, and so on.
SetFileAttrs
int result = SetFileAttrs (char fileName[], int read-only, int system, int hidden,
int archive);
Note: This function is available only on the Windows versions of LabWindows/CVI.
Purpose
Sets the read-only, system, hidden and archive attributes of a file.
The read-only attribute protects a file from being overwritten and prevents the creation of a file
with the same name.
The system attribute and hidden attribute both prevent the file from appearing in a directory list
and exclude it from normal searches.
The archive attribute is set whenever the file is modified, and cleared by the DOS BACKUP
command.
Parameters
Input
fileName
string File to set attributes.
read-only
integer Read-only attribute.
system
integer System attribute.
hidden
integer Hidden attribute.
archive
integer Archive attribute.