1.

Solve : Directory Date??

Answer»

I wonder if someone could help me slve a SLIGHT problem.

I want to use the DIR function to search for the oldest directory and then perform other code on it using the xcopy command to refresh files in the directory.
This is not a problem.
My issue is that I would like to alter somehow the directory date. Renaming the directory does not work as it retains its original date.

Obviously deleting it and creating a new one does solve the issue but I dont want to do this as it will mean ultimately re-copying files to the directory. FILE sizes in my backup routine are reasonably large ENOUGH to MAKE a total new copy quite noticeable re the time taken to perform the batch xcopy function.
When the files are already there and just need a refresh then this is almost instant.

Anyone with any ideas? Would appreciate the help.
Cheers
There is nothing built into Windows that changes file / folder dates. You would have to download a 3rd party utility. There are plenty of free and paid for utilities out there. Google for "Change folder date utility".
Here's one that looks pretty good.

http://www.snapfiles.com/reviews/Attribute_Changer/achanger.htmlI have tried to use 'Filetouch' but unfortunatley it does not do what I want.
It will adjust the date of all sub-directories under the named directory but not a single one.
I want to adjust a named directory amoungst say a collection of 5.
ie I would require to adjust bak3 but not Bak1, Bak2, Bak4 or Bak5.

I have tried putting these into a subdirectory but hte same issue applies.
I do want to keep all my directories under one main directory to simplify coding etc.

I want to basicaly search for the oldest directory and then do a xcopy on it to update my files. I use this code at present to identify the directory in order of date.....dir/b/ad/tw/o-d bak?
Is there a way of getting around this via another method? Could I write a separate subdirectory under my main Bak1, Bak2 and so on ... directories each time I do a back up? If so how could I get the above command to search for the date of the subdirectory but list still the parent directories in date order according to the subfolder that is the newest?

Any help would go down well.
Cheers,
This one will certainly change the date(s) on any selected folder(s) or file(s)

http://www.softpedia.com/get/File-managers/SetFileDate.shtml

thanks for the help but it needs to be a command driven edit rather than a gui etc.
Cheers.
It HAS to be? How come?

http://www.softtreetech.com/24x7/archive/47.htmYou can change the last modified date to the current date/time by creating and deleting a temp file within the folder.



Discussion

No Comment Found