3 Replies Latest reply on Sep 15, 2009 11:26 AM by Mach6

    Batch file deployment using LD

    Rookie

      Hi All,

       

      I am trying to deploy a batch file using LD Custom script or Distribution package. The catch is my batch file inturn calls several other batch files to perform certain function. I wanna know if there is a way in LD to deploy the batch file without any command prompt window pop up. Any input would be helpfull.

        • 1. Re: Batch file deployment using LD
          Employee

          Hi Balagi,

           

          The initial window you run will be hidden, but if your batch file calls other batch files they will be shown.  You can easily run a vbscript to in turn call the batch files (but hiding the window), or you can use any other method available.  I know a lot of people on here like AutoIT.

           

          Since I know a little vbscript, here's an example of what your script would look like:

           

          ' Test.vbs - This will run test1.bat and test2.bat, with no window

          Set objshell = CreateObject("wscript.shell")
          objShell.run("Test1.bat"),0,True
          objShell.run("Test2.bat"),0,True

           

          Let me know if that helps.

           

           

          EDIT:

          The 0 on the objShell.run lines means to hide the window.  True means to wait until it is finished to continue with the next command.

          • 2. Re: Batch file deployment using LD
            Rookie

            Thanks for your help. It did help. I will try to accomodate the additional batch files using VB script or AutoIT..

            • 3. Re: Batch file deployment using LD
              Employee

              Glad to hear it helped.  [-8