sandiegophil Posted July 17, 2018 Posted July 17, 2018 Hello, I am looking for a routine or program that will search a folder/tree or drive and find bak files that do not have a dwg by the same name. Any help is appreciated. thanks, Phil Quote
BIGAL Posted July 18, 2018 Posted July 18, 2018 If you know about the Command option in windows CMD c: cd\ dir *.bak /s /b >c:\mybaks.txt Quote
sandiegophil Posted July 18, 2018 Author Posted July 18, 2018 Thank you. Unfortunately that would only provide a list of the bak files. I'm trying to find bak files that do not have a corresponding dwg file. I'm on a hunt to save some space on a server. Thanks, Phil Quote
BIGAL Posted July 19, 2018 Posted July 19, 2018 You will have to look at some form of routine that goes into every directory and say checks dwg against bak and I would recommend make a txt file that would be a batch file that includes the delete part then you can check 1st. Findfile can look for dwg and bak. make two lists sort and then compare. Quote
maratovich Posted July 19, 2018 Posted July 19, 2018 (edited) Like this. It's not a lisp, not vba, it's an exe program. Program and test folder in the archive. programm.zip Edited July 19, 2018 by maratovich Quote
SLW210 Posted July 19, 2018 Posted July 19, 2018 What was wrong with the solution in THIS thread? Quote
sandiegophil Posted July 19, 2018 Author Posted July 19, 2018 I completely forgot that I started that back in 2011. I'm still looking for a solution to this... Quote
maratovich Posted July 19, 2018 Posted July 19, 2018 I completely forgot that I started that back in 2011. I'm still looking for a solution to this... I have already given you a solution. Look at the post above. Quote
sandiegophil Posted July 19, 2018 Author Posted July 19, 2018 maratovich, My reply was intended/directed at slw201, indicating to them that I had forgotten about the post from 7 years ago. I have not tried your solution yet. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.