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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Purge.bat

VinayPatel
1-Visitor

Purge.bat

how to use the purge.bat located in bin direcotry in CREO 1.0


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.
ACCEPTED SOLUTION

Accepted Solutions

My path has this in it: ";C:\Program Files\PTC\Creo 1.0\Parametric\bin".

An easy way to permanently modify the path, on Win7, is to goto the Control Panel -> System and Security -> Systems -> Advanced system settings -> Advanced Tab -> Environment Variables button -> Then in the System variables section find the PATH variable. Just add the path to the bin folder to the end (with the ; in front of it).

The way to it in Win XP and Vista is similar. You can also get to the system dialog by right clicking on "My Computer" and selecting "Properties".

Here is a screen shot.

path.jpg

View solution in original post

14 REPLIES 14

You add the path to the bin directory to the system variable "path" then from the command window browse to the folder you want to purge and run purge.bat

purge.jpg

Thanks for the reply. I used to do the same in PRO E WF/5, but unable to do the same in CREO/Paramatric 1.0.

the below message appears in command prompt.


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\PTC>purge
'purge' is not recognized as an internal or external command,
operable program or batch file.
C:\PTC>

Vinay,

show us the output of PATH command (launch it from Command Prompt window).

Martin


Martin Hanák

please find the output for path command in command prompt as under.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\vinayhp>PATH
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Co
mmon Files\Autodesk Shared\;C:\Program Files\AceCad Software Ltd\Strucad Drawing
Viewer;C:\Program Files\Windows Imaging\;C:\PTC\proeWildfire 4.0\bin;C:\Program
Files\efx7.0\bin

purge_Path.JPG

Vinay,

your PATH variable does not contain path to CREO\bin directory (something similar to C:\PTC\proeWildfire 4.0\bin). Correct this "defect" and try again.

Martin Hanak


Martin Hanák

My path has this in it: ";C:\Program Files\PTC\Creo 1.0\Parametric\bin".

An easy way to permanently modify the path, on Win7, is to goto the Control Panel -> System and Security -> Systems -> Advanced system settings -> Advanced Tab -> Environment Variables button -> Then in the System variables section find the PATH variable. Just add the path to the bin folder to the end (with the ; in front of it).

The way to it in Win XP and Vista is similar. You can also get to the system dialog by right clicking on "My Computer" and selecting "Properties".

Here is a screen shot.

path.jpg

thanks for the information.

its working fine now.

regards,

Vinay Patel

Hi everyone,

I set the path as Paul showed in the pic, the path command outputs the path... but The purge command in the command prompt isn't recognized.

I've tried launching the command prompt from within Creo and in windows, with no luck. Any help would be greatly appreciated. Thanks!!!

Hello,

tell us, what installation directory you entered during installation. Also tell us what software do you use (ProE WF5 or Creo 1.0 Parametric).

Martin Hanak


Martin Hanák

Hi Martin,

Running Creo Parametric m0.20.

At install, I accepted the default install location (C:\Program Files\PTC)

Also, here's some of the output from the "path" command:

path_pic.JPG

And the the location of the purge.bat file:

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

Thanks!!!

Hello,

correct your PATH setting.

You added C:\;Program Files\PTC\Creo 1.0\Parametric\bin path,

change it to C:\Program Files\PTC\Creo 1.0\Parametric\bin

Martin Hanak


Martin Hanák

Perfect, Thanks Martin!!!

purging in creo
1)open Command Prompt window(either in creo or manually from start button) and enter PATH command.
You will see the content of PATH variable.
To be able to run purge.bat,
you have to ensure, that PATH variable contains the path to bin
(example C:\PTC\Creo 2.0\Parametric\bin)
if there is \PROGRA~1\PTC\MKSTOO~1\bin64;C:\PROGRA~1\PTC\MKSTOO~1\bin;C:\PROGRA~1\PTC\MKSTOO~1\bin\X11;C:\PROGRA~1\PTC\MKSTOO~1\mksnt;C:\Program Files (x86)\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
then change the path file.
To do it follow instruction as given below

2)To get to the path statement in Windows 7,
type "path" in the start menu search;
edit the system environment variables;
environment variables; look for path in the system variables.
it should have following type of path
(example C:\PTC\Creo 2.0\Parametric\bin)

if it is \PROGRA~1\PTC\MKSTOO~1\bin64;C:\PROGRA~1\PTC\MKSTOO~1\bin;C:\PROGRA~1\PTC\MKSTOO~1\bin\X11;C:\PROGRA~1\PTC\MKSTOO~1\mksnt;C:\Program Files (x86)\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
Replace it by above path till C:\Program Files (x86)\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
It should look like C:\PTC\Creo 2.0\Parametric\bin;C:\Program Files (x86)\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
then it will operate purge.bat located in bin folder in creo 2.0
I use notepad to edit the path statement with copy and paste.
Some path statements can get quite extensive

It work perfectly!

Thank you very much.

Best Regards

Davide Lambertini

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


Top Tags