I have some batch file running that does the following on a directory tree with several thousand files:
- change file attributes, turn OFF readonly
- do some stuff, add new files.
- change file attributes, turn ON readonly bit
- For newer files that were added from 2, do some long operation.
The problem I am facing is that steps 1 and 3 also change the file timestamp. which causes step 4 to be run unnecessarily. I do need the files to be readonly after the job is run.
I tried chmod from cygwin, and that did not work.
Using Windows XP.