Skip to main content
1-Visitor
June 8, 2013
Solved

Launch script for creo 1.0

  • June 8, 2013
  • 1 reply
  • 10692 views

Hi folks

I have downloaded the document of launch script from PTC community.

in that sample simple script was there i excuted that simple script. But no use could anyone can help me please?

I have attached my script (.bat file), please review it and help me.

I am dam stuck.

Thanks and regards

Viswanathan.K

    Best answer by BrianMartin

    Hi Viswanathan,

    I apologize I couldn't respond to your email sooner. I'm in a tough spot this week and it's very difficult to carve out time to reply to PTC Community messages. I did take a look at your launch script.

    First... this is the worst launch script in history. It doesn't actually do anything. I'm just giving you a hard time- I know it's not your script.

    Your problem is actually not that difficult. You're setting a variable to the place where Creo lives- and then running the parametric.exe file from that location. That means your error is either in the setting of the variable... or the call statement. In this case, I think you've set the variable incorrectly. On your last file, you added a backslash to your variable name and then repeat it in your call statement. This alone will stop the script from working.

    Just to make sure there's not something else going on... let's just comment out the variable line and make a new call statement that includes everything. If it runs with this modification, then it should run with the variable corrected. Try this for the script:

    @echo off

    :: Set Environment Variables

    :: set proe_load_point="C:\Program Files\PTC\Creo 1.0\"

    :: Launch Pro/ENGINEER

    call "C:\Program Files\PTC\Creo 1.0\Parametric\bin\Parametric.exe"

    @echo on

    exit

    Note that only the bold line is actually doing anything. If you try it, does this work? If so, your problem is in the variable as I suggested above. If not then maybe there's something else going on. Let us know what happens...

    Thanks!

    -Brian

    1 reply

    17-Peridot
    June 8, 2013

    Echo back the string for the variable you defined. See if it truncated at the 1st space character. You might need to enclose it in quotation marks.

    visu1-VisitorAuthor
    1-Visitor
    June 9, 2013

    Dear Antonius Dirriwachter

    I have attached the script i modified and run as you said, but app crash saying now. what should i do?

    I have attached modified script and and screen shot of error.

    Kindly review it and help me.

    To sort it out.

    Else you advise me how to create basic script. attach me document.

    And have another question should I add any other in environment variables (variable name & variable value on user or system).

    12.JPG

    Thanks&regards

    Viswanathan.K

    17-Peridot
    June 9, 2013

    I guess that wasn't it... but if you look at your script, I suspect you have 2 backslashes when you joint the variable with the path:

    @echo off

    :: Set Environment Variables
    set proe_load_point="C:\Program Files\PTC\Creo 1.0\"

    :: Launch Pro/ENGINEER
    call %proe_load_point%\Parametric\bin\Parametric.exe

    @echo on
    exit

    C:\Program Files\PTC\Creo 1.0\ + \Parametric\bin\Parametric.exe =

    C:\Program Files\PTC\Creo 1.0\\Parametric\bin\Parametric.exe

    Also, Parametric.exe is actually parametric.exe ...not that this should matter.

    Try removing the quotes and correct the double backslash

    Check your work by typing "SET" at the command prompt and see if it shows a valid path. (comment out the "call...")