Skip to main content
1-Visitor
May 20, 2010
Question

Purge - Rename Versions to .1

  • May 20, 2010
  • 16 replies
  • 3318 views
I want to purge and then rename the file versions to .1 on a network folder. I need to do this to thousands of files in hundreds of folders.

Any ideas?

P.S. There used to be a purge utility with this option but I can't find it. I am not sure how to write the code for a batch script to do this.




"Too many people walk around like Clark Kent, because they don't realize they can Fly like Superman"
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.

16 replies

12-Amethyst
May 20, 2010
Hi Damien,
You can achieve this in another way. If you make a temporary subdirectory
to put these .1 parts and assemblies.
Then use the File/ Backup to save your assembly into this new sub-directory
which will copy all the files but put the .1 suffix on them. You can then
clear ProE memory and delete all files in the original directory and copy
back files from the temp directory. Sounds like a kludge but is pretty
quick.

You do have to look out for new files in the temp directory that are from
other sources that you do not want to change such as library parts. If you
have these extra parts then you need to delete them first before copying
back the remainder.

Hope this helps.


Regards, Brent Drysdale
Senior Mechanical Designer
Tait Radio Communications
New Zealand
DDI +64 3 358 1093
www.taitradio.com


1-Visitor
May 20, 2010


This is what we use:

[
16-Pearl
May 21, 2010


Viva Dos Legos

10-Marble
May 21, 2010
You don't need batch script, Spekan Purge utility from Innotiv company would do the trick.

1-Visitor
May 21, 2010


Damien,

The purge utility you speak of resides in the \bin\ directory.
It does not rename the file versions to .1 though.

Hope that helps.
13-Aquamarine
May 21, 2010
Hi Damian,

I've just tried this using 'DOS' rename, and it's straightforward.

You could add these lines to the end of purge.bat, or a batch file which
calls it; or you could put them in a separate batch file.

ren *.prt.* *.1
ren *.drw.* *.1
ren *.asm.* *.1

HTH!
Jonathan

13-Aquamarine
May 21, 2010
Sorry for double post - typing faster than thinking...

To cope with many directories, here's the contents of a batch file we
use to purge a chosen directory, and all directories below it. If it's
saved as purge_from.bat, then the command is purge_from dirname.
1-Visitor
May 21, 2010
This is what I use also. Works great!

In Reply to Jurij Skraba:
You don't need batch script, Spekan Purge utility from Innotiv company would do the trick.

http://www.usginnotiv.nl/en/31366/uTools.html

Regards,
Jurij Škraba
Research & Developement Department for Hydromechanical Equipment
Litostroj Power | Production of Power Generation and Industrial Equipment | http://www.litostrojpower.eu
P Pomisli na naravo, preden se odlo?iš za tiskanje tega sporo?ila. Consider the environment before printing this mail.
1-Visitor
May 21, 2010
I want to thank everyone for their responses. I used Spekan Purge in the past for this and could not figure out how to download the program on their site.

Kelly Bryant sent me the first response by email with the link to the Spekan Purge website and I finally figure out where it's located.

The UTools link is what I had to click on and then sign the registration information. I then received an email with a link to the software section and there it was. "Spekan Purge".

For those who don't know me on these forums, I am a 17 year veteran of Pro/ENGINEER but have been moved up into Management and no longer have the time to participate on the forums like I used to. I really miss all the great people on here who are always willing to help.

The only reason I require Spekan Purge is to rename thousands of files that are already purged back to the .1 version. I wanted a fast way to do this and I used Spekan in the past but simply could not figure out how to access the software anymore. 🙂

You guys are great. Thank you again.




"Too many people walk around like Clark Kent, because they don't realize they can Fly like Superman"
1-Visitor
May 21, 2010
Just to be extra clear. I know how to purge and created my own purge script that I have used for years. What I wanted to do is rename the file versions back to .1 on thousands of files.

Thanks




"Too many people walk around like Clark Kent, because they don't realize they can Fly like Superman"