Jump to content

Hunting for orphaned .bak files


Recommended Posts

Posted

Hello,

 

Is anyone aware of a program that will scan a directory or drive and fine all orphaned .bak files. By orphaned I mean a .bak file that does not have a .dwg file by the exact same name in the same directory. Any help is appreciated.

 

Thanks,

Phil

 

Posted

you could do it in vba or lisp pretty easy, You can access the cmd mode of the operating system and you would just do a dir *.dwg >dwglst then dir *.bak >baklst a simple program would read list 1 compare list two and delete files where they do not match.

 

There is a lot here on the forum it may take a bit of a search about copy files from one directory to another that would be a good starting point a word of warnig though anything that deletes files needs to be used with caution.

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