Terry Pinnell
2020-11-26 11:18:27 UTC
Is it possible to achieve the following with either a batch file or
command prompt on my Win 10 PC please? Or indeed any other hack, such as
a VBS script, etc?
Parent folders such as one named 'xyz' contain scores or hundreds of
subfolders. In each of these subfolders, such as one called 'abc', there
is a single file, called with the same name as its folder but extension
'.ino', such as abc.ino.
Usually that's the ONLY file. But, in case it proves relevant,
occasionally there may be one or more other files in that subfolder.
Even rarer one of those might be named xyz.txt, xyz.jpg, etc.
I want to process all of the *.ino files, from the top parent 'xyz'. I
don't care if the few files with other extensions get processed or not.
But here's the thing. Somehow the Date Modified entries for all the
subfolders containing the INO files have lost their original dates. The
INO files have retained them.
I want to automatically change all the subfolder Date Modified entries
to equal the Date Modified entry of its INO file of the same name.
Any help will be warmly appreciated please.
Terry
command prompt on my Win 10 PC please? Or indeed any other hack, such as
a VBS script, etc?
Parent folders such as one named 'xyz' contain scores or hundreds of
subfolders. In each of these subfolders, such as one called 'abc', there
is a single file, called with the same name as its folder but extension
'.ino', such as abc.ino.
Usually that's the ONLY file. But, in case it proves relevant,
occasionally there may be one or more other files in that subfolder.
Even rarer one of those might be named xyz.txt, xyz.jpg, etc.
I want to process all of the *.ino files, from the top parent 'xyz'. I
don't care if the few files with other extensions get processed or not.
But here's the thing. Somehow the Date Modified entries for all the
subfolders containing the INO files have lost their original dates. The
INO files have retained them.
I want to automatically change all the subfolder Date Modified entries
to equal the Date Modified entry of its INO file of the same name.
Any help will be warmly appreciated please.
Terry