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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Which file define the $PRO_DIRECTORY variable path?

jlee-10-11-12
10-Marble

Which file define the $PRO_DIRECTORY variable path?

I can find these two variables in config.pro file, but in which file define these two variables' path?

Usually we define path like this ENV=PRO_DIRECTORY=D:\SAMPLE FOLDER. but i can't find this definition in all .bat files and .psf files.

  • $PRO_DIRECTORY
  • $CREO_COMMON_FILES
ACCEPTED SOLUTION

Accepted Solutions

Hi,

 

I guess that Creo creates these local variables automatically, when you start new session.


Martin Hanák

View solution in original post

4 REPLIES 4

Hi,

 

I guess that Creo creates these local variables automatically, when you start new session.


Martin Hanák

I agree with you, because i tried to find all .bat and .psf files but can't find these variables.

You will see the following snippet in a number of batch files in the Creo app directory (<loadpoint>\parametric etc.):

### Creo 4.0 ###
set APPDIR=%~dp0.. set cf=%~dp0..\.. set PRODIR=%cf%\Common Files
[...]
set PRO_DIRECTORY=%PRODIR%

### Creo 2.0 ###
set APPDIR=%~dp0..
set cf=%~dp0..\..
set PRODIR=%cf%\Common Files\M240
[...]
set PRO_DIRECTORY=%PRODIR%

I assume one of the batch files is called during Creo startup prior to processing the PSF file.

Hi,

I found these files contain the variables.

Thank you for your help.

 

 

 

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\convert_image.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\dcadsetup.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\dcadshutdown.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\modelcheck.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\parametric_borrow.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\procvtutil.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\prodialog_view.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\proev.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\progpostg.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\progpostl.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\progpostq.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\propostg.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\propostl.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\propostq.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\protab.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\protk_unlock.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\pro_mcs_comp.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\pro_ncl_cvt.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\ptcborrow.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\ptcdbatch.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\ptcflush.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\ptchostid.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\ptcstatus.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\purge.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\vb_api_register.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\vb_api_unregister.bat
[40]     set PRO_DIRECTORY=%PRODIR%

----------  D:\Program Files\PTC\Creo 4.0\M020\Parametric\bin\pim\xml\creo_templates.xml
[66]     set PRO_DIRECTORY=%PRODIR%
[114]     set PRO_DIRECTORY=%PRODIR%
[951]       set PRO_DIRECTORY=%PRODIR%

--

Jeff

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags