| ProTIPS | Pro/ENGINEER | How to execute custom commands at Start-up |
I know 3 methods of performing custom tasks before starting Pro/E (in
this case to copy config files from a central location to the local machine):-
1. Modify PTC's Pro/ENGINEER startup batch file (Windows) or script (Unix), to include extra lines at the top to perform your custom tasks.
2. Create a parent startup batch/script file which performs your custom tasks and then calls PTC's Pro/ENGINEER startup batch/script file, and redirect the users' shortcuts to execute the parent.
3. Create a batch file called ptc_startup.bat in the Pro/E loadpoint, which performs your custom tasks.
I am not keen on modifying the actual Pro/ENGINEER batch files,
because someone then needs to reproduce the same changes in the new batch
file that comes with a new version of Pro/E. Nor am I keen to create
a parent startup batch file, because this needs to be modified when the
Pro/ENGINEER startup batch/script file is renamed with each new version,
and because you have to configure Pro/PDM to use this alternative startup
command.
I find the third method more preferable.
I can never find where it was that I discovered that this file, if it
exists, will be automatically executed on startup.
So far I have had success with this on WindowsNT4 for my Pro/E startup.
I have not been able to do this for my few Unix workstations.
For my Pro/PDM startup I use method 2 on NT and Unix.
The one problem with method 3, however, is that it prevents the launching
of a Pro/E session from Pro/PDM.
Dear ProE community,
thanks for the many quick answers!!
The basic idea is to let a batch file copy a centrally placed config.pro,
config.sup and etc. to the /loadpoint/text directory everytime before starting
the proe2001.bat . (And more like setting the appropriate working dir,
and so on...)
========================================
= Andreas Stuffer
=
= Universität Karlsruhe (TH)
=
= Institut für
=
= Maschinenkonstruktionslehre
=
= und Kraftfahrzeugbau
=
= Am Fasanengarten, Geb. 50.33
=
= 76128 Karlsruhe
=
= tel: +49-721-608-6494
=
= fax: +49-721-608-6053
=
= web: www.mkl.uni-karlsruhe.de
=
= mailto: stuffer@mkl.uni-karlsruhe.de =
========================================