Jump to content

Recommended Posts

Posted

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

Posted

If you know about the Command option in windows

 

CMD

c:

cd\

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

Posted

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

Posted

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.

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
Posted

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

Posted
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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...