Set_File_Mod_Time
See Also: Get_File_Mod_Time
Purpose
To set the time/date stamp for a file.
Syntax
Set_File_Mod_Time {file-name} To {date-var} [{hour-var} [{minute-var} [{second-var}]]]
What It Does
Set_File_Mod_Time sets the {file-name}'s date stamp, and as many parts of the time stamp as there are arguments provided after {date-var} in the statement.
Date dFileDate
Integer iFileHour iFileMinute iFileSecond
// Set the values of the date and integer variables to the current date and time
sysdate dFileDate iFileHour iFileMinute iFileSecond
Set_File_Mod_Time "Hello.Txt" to dFileDate iFileHour iFileMinute iFileSecond
In this example, the file-modified date and time for Hello.Txt are set to the values in dFileDate, iFileHour, iFileMinute, and iFileSecond.
Notes
- If the file is not found, error 4358 "Rawfile Command Error" is reported.