Description: | Date and Time functions are useful for:
The example in this section demonstrates how to use the :ftime function to determine the age in days of all files in the temp directory. Two variables are used
Using Delayed Expansion and exclamation marks around environment variables ensures that the `tfile`variable is substituted properly during each loop. Read more about this behavior in the SET command help (bottom half of the help text). |
||
Script: | Download: BatchFTime.bat
|
||
Script Output: |
|