cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

launch script

Highlighted
Newbie

launch script

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

6 REPLIES 6
Highlighted

Re: launch script

Sorry here i have attached pictures

Highlighted

Re: launch script

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.

Highlighted

Re: launch script

Does

echo %proe_load_point%

throw you a "C:\Program File\Creo 1.0\" ?

Highlighted

Re: launch script

Coouldn't get you.

Could you exlain please.

Regards

Viswanathan.K

Highlighted

Re: launch script

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.

Highlighted

Re: launch script

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"

Announcements