<< Click to Display Table of Contents >> Navigation: 3. Script Language > Filesystem-Commands > SFD. - Set File Date |
MiniRobotLanguage (MRL)
SFD. Command
Set File Date
Intention
Set a date information from a file. Depending on parameters this can be the:
1. creation date
2. last write
3. last access
date of the specified file.
For most uses, these are the following three operation modes of SFD.
1. SFD.$$FIL|$$RET|c
This will change the creation date of file $$FIL.
2. SFD.$$FIL|$$RET|a
This will change the last access date of file $$FIL.
3. GFD.$$FIL|$$RET|w
This will change the last write date of file $$FIL.
Syntax
SFD.P1|P2[|P3]
Parameter Explanation
P1 - Filename
P2 - Timestamp with Time to use. Format "YYYY:MM:DD:HH:MM:SS"
P3 - optional c/a/w depending what file-date shall be changed.
Example
''**********************************************
' GFD. - Sample
' Please use a path from files which are available
' on your system.
'**********************************************
'DBM.2
' Path to an existing file
VAR.§§FIL=?path\TestApp.exe
PRT.===========================================
GFD.§§FIL
PRT.Creation Date: $$000
GFD.§§FIL|-|a
PRT.Last access Date: $$000
GFD.§§FIL|§§RES|w
PRT.Last write Date: §§RES
PRT.===========================================
DMP.4
END.
Remarks
-
Limitations:
-
See also:
• 1.5.2 Working with Text-Strings
•
• SBD. - String between Delimiter
• SBM. - String between Delimiter-Multiple