docs

Home All functions Categories

vuSetFileDate(FileName, Year, Month, Day, Hour, Minute, Second)

vuSetFileDate(*CSTRING,LONG,LONG,LONG,LONG,LONG,LONG), Signed

Description

Sets the date and time attributes of a specified file. Updates creation, last modified, and last accessed timestamps.

Parameters

Parameter Data Type Description
FileName CSTRING(256) Fully qualified path and filename of an existing file.
Year LONG Year to set.
Month LONG Month to set (112).
Day LONG Day of the month to set (131).
Hour LONG Hour to set (023).
Minute LONG Minute to set (059).
Second LONG Second to set (059).

Returns

A LONG value:

Example

FileName = 'C:\Valutilities\Test.bak'

! Sets creation, last write, and last access time to July 18, 2004, 4:00 PM
vuSetFileDate(FileName, 2004, 7, 18, 16, 0, 0)

Notes

Ch

Home All functions Categories