So lets get back to what you want to do...
You have originals
You have OCRs
The OCRs are dated currently
You want the OCRs to be dated back to the same date of the originals?
---
Yes, I was quoting myself, above.
---
I'll often modify files but then "re-date" (touch) them back to the original source file's date.
For 1 at a time usage, I use:
SETTIME.BAT:
- Code: Select all
@ECHO OFF
ECHO SETTIME sets a file's date to the "same" file, named "abc"
ECHO a sort of more current variation of my old ancient DOS settime program
ECHO.
ECHO therube 02/20/2015
ECHO.
ECHO File to change the date of: %1
FOR %%i in (%1) do SET BASENAME=%%~dpiabc
ECHO reference file (aka "abc"): "%BASENAME%"
ECHO.
ls -l %1
ls -l "%BASENAME%"
ECHO.
PAUSE
touch %1 --reference="%BASENAME%"
ls -l %1
PAUSE
EXIT
touch, is the unix touch command
ls, is the unix ls commad (akin to DIR)
By convention, when I do this, I make a copy of the source, naming it "abc".
So I have my source file, & a file named abc.
They're the same, same file date/time.
I make my changes to source, & when done, I run my SETTIME batch file, from my file manager (or Windows Explorer) [via SendTo in right-click context menu] which sets the (at that point, modified, so currently dated) source back to its original date.
Then I delete the 'abc' file.
---
I
believe that I have something where I've done bulk date changes too, I'll have to look later.
But general idea is:
sourcedir
modifieddir
for i in sourcedir/%i do SETTIME modifieddir/%1
---
orig file is DS11..., abc is a copy of that, both have same date
- Code: Select all
Directory of C:\TMP\SEA\pdf
11/29/2017 08:31 AM <DIR> .
11/29/2017 08:31 AM <DIR> ..
01/11/2017 12:04 PM 98,256 abc
01/11/2017 12:04 PM 98,256 DS11_Complete.pdf
here i've modified DS11..., so its date changed
- Code: Select all
Directory of C:\TMP\SEA\pdf
11/29/2017 08:31 AM <DIR> .
11/29/2017 08:31 AM <DIR> ..
01/11/2017 12:04 PM 98,256 abc
11/29/2017 08:32 AM 98,256 DS11_Complete.pdf
after running SETTIME (slightly modified), DS11... again has its original date (& in this case, I also forced the time-part to be 2:01pm)
- Code: Select all
Directory of C:\TMP\SEA\pdf
11/29/2017 08:31 AM <DIR> .
11/29/2017 08:31 AM <DIR> ..
01/11/2017 12:04 PM 98,256 abc
01/11/2017 02:01 PM 98,256 DS11_Complete.pdf
SETTIME in action.
#1, the files after having modified DS11...
#2, now showing DS11 with its time set back to its original date
