1 Reply Latest reply on Mar 12, 2015 3:19 AM by acf

    Automation for Dx-Designer "Clear Backups"




      Is there any automation involved in clearing all the schematic sheet backups at one go?

      There are no means to access the File menu within "viewdraw" application and then access the command "Clear Backups".


      Please let us know if there any ways of automation. (Any batch files or exe files within Dx-Designer installation location?)




        • 1. Re: Automation for Dx-Designer "Clear Backups"

          Hello in this subroutine as example.

          You can work with that. Good luck


              Sub CopyFoders(oldpath, newpath)

          Dim sfolder, oldfolder, newfolder, SfolderName, SubFolders                  
          Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
                  Set oldfolder = fso.GetFolder(oldpath)
                  'Set newfolder = fso.GetFolder(newpath)
                  'Set schFiles = oldfolder.Files
                  Set sfolder = oldfolder.SubFolders
                  For Each SubFolders In sfolder
                      SfolderName = SubFolders.name
                      If (SfolderName = "database" ) Then           
                          SubFolders.Copy newpath & "\" & SfolderName,True
                      end if
                 Set fso = Nothing
              End Sub

          1 of 1 people found this helpful