file combining, keep newest??

CharmPeddler

New Member
i am trying to conglomerate all of the Autodesk Inventor files that are on my computer ( 3k+ ) into one folder. my problem is that there are multiples of many files, and Inventor also has backups and "older versions". i am trying to find a way to automate the choosing of the newest modified versions, or to weed out the "old versions" and backups. i have the newest windows search and the program "everything".

thanks for any and all suggestions.
 
What OS are you running? This can be easily done with a loop in a shell script if you are using *nix. If you are using Windows, you can try writing a batch file (what windows calls a script) and accomplish the same thing, but batch commands are not as robust and I don't really deal with them on the Windows side. Google, however, is your friend.
 
i'm on a windows xp machine. i'll look into the scripting. hopefully i can learn it and implement it quicker than i can do it manually :D
 
Yeah you are going to have to write a batch file then. To get a list of XP commands you can start here:

http://www.ss64.com/nt/

Looks like you would want to look at the For /F command, which will start a loop. Then you will have to loop it so that any files older than x days or months, get deleted or moved, or archived or whatever.

I don't write scripts for windows but that is where I would start
 
Back
Top