Jump to content
sandiegophil

bak files without a dwg

Recommended Posts

sandiegophil

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

Share this post


Link to post
Share on other sites
BIGAL

If you know about the Command option in windows

 

CMD

c:

cd\

dir *.bak /s /b >c:\mybaks.txt

Share this post


Link to post
Share on other sites
sandiegophil

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

Share this post


Link to post
Share on other sites
BIGAL

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.

Share this post


Link to post
Share on other sites
maratovich
Posted (edited)

Like this.

It's not a lisp, not vba, it's an exe program.

Program and test folder in the archive.

attachment.php?attachmentid=64226&cid=1&stc=1

attachment.php?attachmentid=64224&cid=1&stc=1

programm.zip

pro.png

Edited by maratovich

Share this post


Link to post
Share on other sites
SLW210

What was wrong with the solution in THIS thread?

Share this post


Link to post
Share on other sites
sandiegophil

I completely forgot that I started that back in 2011. I'm still looking for a solution to this...

Share this post


Link to post
Share on other sites
maratovich
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.

Share this post


Link to post
Share on other sites
sandiegophil

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×