Only Process Files Modified Since Date

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Anagoge
Posts: 2
Joined: Fri Aug 13, 2010 6:36 pm

Only Process Files Modified Since Date

Post 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?
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Only Process Files Modified Since Date

Post by xnview »

No sorry
Pierre.
Joey
Posts: 1
Joined: Tue Oct 26, 2010 12:13 pm

Re: Only Process Files Modified Since Date

Post 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.
Anagoge
Posts: 2
Joined: Fri Aug 13, 2010 6:36 pm

Re: Only Process Files Modified Since Date

Post by Anagoge »

Thanks for the idea, Joey. That should work well on the more modern versions of Windows.
Post Reply