Only Process Files Modified Since Date
Moderator: xnview
-
Anagoge
- Posts: 2
- Joined: Fri Aug 13, 2010 6:36 pm
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?
-
xnview
- Author of XnView
- Posts: 47518
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
Joey
- Posts: 1
- Joined: Tue Oct 26, 2010 12:13 pm
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.-
Anagoge
- Posts: 2
- Joined: Fri Aug 13, 2010 6:36 pm
Re: Only Process Files Modified Since Date
Thanks for the idea, Joey. That should work well on the more modern versions of Windows.