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 called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

ProE file version checking tool?

BarrySchaeffer
1-Newbie

ProE file version checking tool?

ProE Gurus,

I have a large number of ProE files in folders which were saved using different versions of ProE (Wildfire 1 thru 3).

I want to rapidly identify the subset of those which were stored in versions prior to WF3.

Is there a tool available for this purpose? Perhaps a method using a tool like grep?

Thanks in advance. I will publish a summary of any methods that work.

Barry Schaeffer
Fluke
Everett WA


2 REPLIES 2

On 05/05/11 17:35, Schaeffer, Barry M wrote:
> ProE Gurus,
>
> I have a large number of ProE files in folders which were saved using different versions of ProE (Wildfire 1 thru 3).
>
> I want to rapidly identify the subset of those which were stored in versions prior to WF3.
>
> Is there a tool available for this purpose? Perhaps a method using a tool like grep?
>
> Thanks in advance. I will publish a summary of any methods that work.
>
> Barry Schaeffer
>
> Fluke
>
> Everett WA
>

On Solaris this shell script will do this
==============================================================================================
#!/bin/sh

for file in *
do
version="`head -1 $file | awk '{print $9}'`"
if [ "$version" -lt "2700" ]; then
echo $file
fi
done
==============================================================================================

What this does is loop thru all the files in the current directory and
finds the version by taking the 1st line of each file (head -1 $file) pipe
that to awk to extract the 9th field of that line. Since 2700 is Wildfire 3
it then compares the version to that. If less than "2700" then we have a
pre WF3 file.

--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------

Hi Barry,

You can use my ProTrail tool with the -chkvers option.
(download it here).
Copy protrail.exe to the folder (or another folder which is in your PATH)Open a DOS prompt in the folderRun ProTrail:
protrail -dontrun -chkversIt will deliver output like thisSmiley Tonguerocessing file 300709296.prt.1
File 300709296.prt.1 was created with Wildfire 4.0 (M190)
Processing file din_125b.prt.1
File din_125b.prt.1 was created with Wildfire 4.0 (M140)
Processing file din_6325-old.prt.1
File din_6325-old.prt.1 was created with Wildfire 4.0 (M140)
Processing file din_7991.prt.1
File din_7991.prt.1 was created with Wildfire 4.0 (M140)Kind regards,

Olaf Corten




Olaf Corten
CAD/PLM Manager
Fico B.V.
Ratio 6, Duiven
Phone: +31 26 3196215
Mobile: +31 644548554
www.besi.com






From: Randy Jones <->
To: "Schaeffer, Barry M" <barry.schaeffer@fluke.com>
Cc: "-" <->
Date: 06-05-2011 16:59
Subject: [proesys] - RE: ProE file version checking tool?



Top Tags