Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Running a PRISM Package within a BATCH FILE  (Read 4687 times)

0 Members and 1 Guest are viewing this topic.

bronx27

    Topic Starter


    Greenhorn

    Running a PRISM Package within a BATCH FILE
    « on: February 26, 2009, 10:07:56 AM »
    Hello All,

    Does anyone know how I can run a PRISM Package File (ex: easycheck.pwc)
    from within a BATCH File?   I"m stuck on this!

    I'm trying the following:

    ------------------------------------------
    @echo OFF
    echo.
    echo Press [ENTER] to run the EasyCheck PRISM Package...
    echo.
    PAUSE
    START c:\progra~1\newbou~1\Client\ptclient.exe EasyCheck.pwc
    CLS
    ------------------------------------------

    Note:  The .pwc extension is already associated with the PRISM Program.

    Any Help is Appreciated!

    Thanks,
    Tony (aka bronx27)
    Email:  [email protected]

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Running a PRISM Package within a BATCH FILE
    « Reply #1 on: February 26, 2009, 11:45:46 AM »
    if you drop off the  EasyCheck.pwc from this, does the ptclient launch?

    START c:\progra~1\newbou~1\Client\ptclient.exe

    If it does launch try the following bound with ""

    START c:\progra~1\newbou~1\Client\ptclient.exe "EasyCheck.pwc"

    *Also do you really need the START command to open in seperate window...try dropping off the START

    c:\progra~1\newbou~1\Client\ptclient.exe EasyCheck.pwc



    bronx27

      Topic Starter


      Greenhorn

      Re: Running a PRISM Package within a BATCH FILE
      « Reply #2 on: February 26, 2009, 11:54:00 AM »
      Dave,

      I"ve tried many different combinations of this, including the ones
      that you've suggested.  As far as the PTCLIENT.exe running, it already
      runs in the background and the little icon is on the bottom right-hand
      corner of the taskbar, next to the time display.  So the app is ALWAYS running
      in the background.

      I figured if you associate the .pwc extension to the "correct" program, it should
      just run and/or work.  But, it doesn't seem to in this batch file.  I can simply double-click
      the easycheck.pwc and it runs just fine.  I just want to automate this process along w/others
      within the same batch file.

      I appreciate your response.

      Thanks for the Reply!
      Tony

      DaveLembke



        Sage
      • Thanked: 662
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Running a PRISM Package within a BATCH FILE
      « Reply #3 on: February 26, 2009, 12:06:55 PM »
      Does this service have an INI file etc to where you can use a list of INI files to designate what to execute on start of the service?

      Then you can

      NET STOP PTCLIENT

      *swap the INI files from a list of specific PWCs and drop the one you want to load into the root of the PTCLIENT folder and when the service starts back up with the ...

      NET START PTCLIENT

      It should run what you want? This is if the service has an INI file that will allow for you to do this for default starting parameters for the service.

      Then you could write a batch that stops the service and swaps the INI files from a list of all PWCs you want to run and starts and stops service to trigger them through default startup INI parameters.

      bronx27

        Topic Starter


        Greenhorn

        Re: Running a PRISM Package within a BATCH FILE
        « Reply #4 on: February 26, 2009, 12:17:18 PM »

        Dave,

        Good suggestion, however, there is NO service that runs for
        this application, nor are their any .ini files. 
        It simply runs the PTCLIENT.exe and runs in the background.

        The program only contains 3 files in it's folder.
        "c:\program files\new boundry\client".

        eminvcli.exe
        ptclient.exe
        ptclient.chm (Help File)

        Thanks,
        Tony

        DaveLembke



          Sage
        • Thanked: 662
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Running a PRISM Package within a BATCH FILE
        « Reply #5 on: February 26, 2009, 03:11:26 PM »
        hmm...that really doesnt leave room for much.... at this point I would use a GUI Macro Recorder like jitbit's Macro Recorder which I use for problems like this that you want to automate, but of which the application cant take arguments or an INI file to specify what to run.

        Program is great, however you will need to execute it on a system after hours or a dedicated system on hours to avoid the macro competing with the user if a scheduled task which appears to be what you are looking to do. You simply command the recorder to record your activities and then tell it to stop. You can then compile this macro as a stand alone EXE, and add it to a scheduled event. It costs money, but was worth every penny I paid for it. Absolutely perfect for GUI automation.

        http://www.jitbit.com/macrorecorder.aspx

        bronx27

          Topic Starter


          Greenhorn

          Re: Running a PRISM Package within a BATCH FILE
          « Reply #6 on: February 27, 2009, 06:22:01 AM »

          Dave,

          I will take your suggestion into consideration.  I appreciate your advice.

          Thanks,
          Tony (aka bronx27)