This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
The File_SetDateTime() function sets a new date and time for a giving file.
Syntax
n = File_SetDateTime(sFile, sDate, sTime, nChoice)
Returns
Returns a number
Nonzero value if the file date and time was successfully changed.
Zero if the function fails.
Parameters
Name |
Type |
Optional |
Meaning |
sFile |
String |
No |
The full path of the file you want the Date |
sDate |
String |
No |
The new date to set, if empty current date is used. |
sTime |
String |
No |
The new time to set, if empty current time is used. |
nChoice |
String |
No |
Specify witch date to be setted, could be one or a combination of following values: %DATE_TIME_FILE_CREATION %DATE_TIME_LAST_FILE_ACCESS %DATE_TIME_LAST_FILE_WRITE |
Remarks
Restrictions
New date string format must be "mm-dd-yyyy" or "mm-dd-yy".
See also
Examples
File_SetDateTime( _
"c:\windows\notepad.exe", _
"07-23-2005", _
"22:00:00", _
%DATE_TIME_FILE_CREATION Or %DATE_TIME_LAST_FILE_WRITE _
)