Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Starting Creo 2.0 using batch file

florinfaur

New member
I try to launch Creo Parametric 2.0 using a batch file.
The batch file has only one line:
@C:\PTC\Creo 2.0\Parametric\bin\parametric.exe
The application launches and it works, but the command window stays open until Creo is closed.
Does anybody have experienced this problem?

P.S. A similar batch for ProE WF 3.0 and 5.0 closes the command window after launching ProE, therefore the problem is in Creo, not in the Operating system (Windows 7 - 64).
 
This behavior can be tested using the batch command created by PTC (your location might be different than mine):
C:\PTC\Creo 2.0\Parametric\bin\parametric.bat

If somebody is using Creo 1.0, it would be nice to know if the problem appeared in Creo 1 or Creo 2.

Thank you.
 
Covered in more detail on the PTCUser exploder

(membership required) here:



<blockquote>My batch file has this now:<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "><br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "><blockquote>call "%proe_executable_folder%%proe_executable%"<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "></blockquote><br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); ">It needs to be changed to:<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "><br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "><blockquote>start "Creo 1.0 Parametric" "%proe_executable_folder%%proe_executable%"<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); "></blockquote><br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); ">You need both parts of the 'start' statement, the descriptive bit after<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); ">'start' and the full path to the executable. I tested it and it does<br style="color: rgb(51, 51, 51); font-family: Arial, Verdana, geneva, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-trans: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; : rgb(255, 255, 255); ">work with Creo.
</blockquote>

Edited by: dgs
 
I have tried the start solution, but w/o a title and it did not work.
Now it works like a charm.
Thank you both for your help.






Edited by: florinfaur
 
Just curious but why use a batch file to start Creo rather than a shortcut on the desktop?<?:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" />
I have several shortcuts so that it starts in individual projects and reads the config files for those projects.
 
Things I do with our start batch files:

<ul>[*]Prompt the user to choose a client so that the
proper client configfiles get loaded
[*]Copy our company config.pro, config.sup & config.win
files to the text directory
[*]Copy icons into the start menu that point to our
batch files for all versions of Pro/E that we run.
[*]Create a config file for taht version of Pro/E
for that user if one does not exist so they can add
options to it from the UI
[*]Backup the user configs into the local hard drive.
[/list]
Edited by: dgs
 
All the reasons Doug said are true. I would add another one:
<ul>[*]To test if the user has the latest iteration of ProE and if needed to automatically update ProE.[/list]
 

Sponsor

Articles From 3DCAD World

Back
Top