SetFileDate

Description:

baSetFileDate sets the date of a file.

Platforms:

Windows

Usage:

Result = baSetFileDate( FileName, Year, Month, Day, Hour, Minute, Second )

Arguments:

String, integer, integer, integer, integer, integer, integer.
FileName is the file to set the date of.
Year is the year.
Month is the month, January = 1.
Day is the day of the month.
Hour is the hour in 24 hour format (0-23).
Minute is the minute.
Second is the number of seconds.

Returns:

Integer.
Returns 1 if successful, else 0.

Examples:

Director:
OK = baSetFileDate( "c:\data\student.dat", 2001, 12, 5, 15, 23, 12 )

Authorware:
OK := baSetFileDate( "c:\\data\\student.dat", 2001, 12, 5, 15, 23, 12 )
 

Notes:

If an invalid date is entered then the function will fail.
 

See also:

baFileDate
baFileAge
baFileVersion