Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi folks
I have attached 2 screens shots of launch script,
see the difference and say why the script was not call pro-e when i save the file like picture 1, in picture 2 was working good.
And please give me some videos of launch script for pro-e or any pdf
--
Thanks and regards,
K.Viswanathan
Mobile No:+91-9940589005
PICTURE 1
PICTURE 2
One of two reasons:
1: you for got to remove the comment in front of the "set" statement
or 2:
Because you have the variable inside the quotation marks. It is simply ignoring it as a variable.
try:
set proe_load_point="C:\Program File\Creo 1.0\"
call %proe_load_point%parametric\bin\parametric.exe
You might remove the echo statements so you can see what is going on.
Does
echo %proe_load_point%
throw you a "C:\Program File\Creo 1.0\" ?
Coouldn't get you.
Could you exlain please.
Regards
Viswanathan.K
my point is, does %proe_load_point% contain the String "C:\Program File\Creo 1.0\". You can test it with the "echo" command.
If not, your second line would ask your system to run:
"Call parametric\bin\parametric.exe"
But this could not work.
Another way to launch creo is, to use registry:
rem find latest reg entry
set regsearchpath=abc
for /f "tokens=*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PTC\Creo Parametric\2.0" /z ') do set "regsearchpath=%%a"
rem search for current installdir
for /f "tokens=2*" %%a in ('reg query "%regsearchpath%" /v InstallDir') do set "AppPath=%%~b"
for /f "tokens=2*" %%a in ('reg query "%regsearchpath%" /v Shipcode') do set "creoversion=%%~b"
echo.
echo Installationspath Creo: %AppPath%
echo Creo Version: %creoversion%
start "" "%AppPath%\bin\parametric.exe"