Only Process Files Modified Since Date
Moderators: helmut, XnTriq, xnview
Only Process Files Modified Since Date
Is there any way to call nconvert in a dos batch file to only process files modified either before or after a certain date?
Re: Only Process Files Modified Since Date
You cannot do it in a DOS batch file. However, in Windows batch files you can use the forfiles program which takes the /D option:
Forfiles is included at least since Windows Vista and was part of the Windows Resource Kit before.
Code: Select all
/D date Selects files with a last modified date greater
than or equal to (+), or less than or equal to
(-), the specified date using the
"yyyy-MM-dd" format; or selects files with a
last modified date greater than or equal to (+)
the current date plus "dd" days, or less than or
equal to (-) the current date minus "dd" days. A
valid "dd" number of days can be any number in
the range of 0 - 32768.
"+" is taken as default sign if not specified.
Re: Only Process Files Modified Since Date
Thanks for the idea, Joey. That should work well on the more modern versions of Windows.