If File is Older or Newer Than one day
Check to see whether or not files in C:\temp have a modified date older than 1 day
If File is Older or Newer than one day
This task will check to see whether or not files in C:\temp have a modified date older than 1 day. If the current file is older than one day, a dialog box will appear saying YES! If the file is not older than 1 day, a dialog box will appear saying NO! This demonstrates how the FileDateTime() and DateAdd() Functions can be used to check each file's date during the Loop process. This also demonstrates how the "If" and "Else" statements can be used. Comments explaining each step are added to the task (in red letters)
Furthermore, in order for this task to work properly, please create a folder named temp in your C:\ drive and add some files to it (preferably older and newer than 1 day).