Page 1 of 1

Only Process Files Modified Since Date

Posted: Fri Aug 13, 2010 6:42 pm
by Anagoge
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

Posted: Sat Aug 14, 2010 9:36 am
by xnview
No sorry

Re: Only Process Files Modified Since Date

Posted: Tue Oct 26, 2010 12:17 pm
by Joey
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:

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.
Forfiles is included at least since Windows Vista and was part of the Windows Resource Kit before.

Re: Only Process Files Modified Since Date

Posted: Tue Oct 26, 2010 5:16 pm
by Anagoge
Thanks for the idea, Joey. That should work well on the more modern versions of Windows.