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

    Automation for Dx-Designer "Clear Backups"

    bharadwaj.chalamchala1

      Hi,

       

      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?)

       

      Thanks,

      Bharadwaj.

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


          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
                          SubFolders.Delete
                      end if
                     
                                 
                  Next
                 
                 Set fso = Nothing
                 
              End Sub