1.

Solve : Running a PRISM Package within a BATCH FILE?

Answer»

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: [emailprotected]
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


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

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
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
Dave,

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

Thanks,
Tony (aka bronx27)



Discussion

No Comment Found