Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-68 © National Instruments Corporation
Return Value
result return value Result of operation.
Return Codes
0 Success.
-1 One of the following errors occurred:
• File not found.
• Attribute cannot be changed.
Parameter Discussion
Each attribute parameter can have one of the following values:
0—clears the attribute
1—sets the attribute
-1—leaves the attribute unchanged
fileName may be the empty string (""), in which case the attributes of the file found by the most
recent call to GetFirstFile or GetNextFile are set.
SetFileDateint status = SetFileDate (char fileName[], int month, int day, int year);
Purpose
Sets the date of a file.