Skip to main content
13-Aquamarine
January 27, 2012
Question

Figure out maintenance release of Creo

  • January 27, 2012
  • 1 reply
  • 689 views
Here's another way to figure out what maintenance release of Creo you are running. This looks at the install log in the Parametric folder.

Note that what I show here is for interactive testing. You will need to double up the % signs for your batch file.

for /F "tokens=2 usebackq" %A IN (`findstr "SHIPCODE" "c:\ptc\Creo 1.0\Parametric\uninstall\instlog.txt"`)DO set CREOVERSION=%A
set CREOVERSION="M020"
for /f "useback tokens=*" %a in ('%CREOVERSION%') do set CREOVERSION=%~a
set CREOVERSION=M020

In your batch file it would look like this:
for /F "tokens=2 usebackq" %%A IN (`findstr "SHIPCODE" "c:\ptc\Creo 1.0\Parametric\uninstall\instlog.txt"`)DO set CREOVERSION=%%A
for /f "useback tokens=*" %%a in ('%CREOVERSION%') do set CREOVERSION=%%~a

You can then use %CREOVERSION% to set the folder where you want to copy the loadpoint configs.
Obviously you need to change the hi-lited section to match your loadpoint.

David Haigh
Phone: 925-424-3931
Fax: 925-423-7496
Lawrence Livermore National Lab
7000 East Ave, L-362
Livermore, CA 94550


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

davehaigh13-AquamarineAuthor
13-Aquamarine
January 27, 2012
One more thing you might want to do in this script is make the config files in the load point read only.

attrib +R "C:\ptc\Creo 1.0\Common Files\%CREOVERSION% \text\config.pro"
attrib +R "C:\ptc\Creo 1.0\Common Files\%CREOVERSION% \text\config.sup"

David Haigh