Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Cleanup of ProE files.....?

AGaribay

New member
How do you create a Batch File which when placed in a Windows Directory, would Delete (or Move) the specified files from ALL the Sub-Folders.

Example:
V:
V:\parts
V:\parts\assemblies
V:\parts\assemblies\drawings
etc...

Files wanting to Delete or Move:

*.inf*, *.ref*, *.ptd*, *.tst*, *.memb*, *.ers*, *.info*, *.lst.*, *.inf*, *.
shd*, *.dat*, *.ger*, *.m_p*, *.log*
 
del /s *.inf* will delete all *.inf* files in all subdirectories of the current directory.


You could modify the proe.bat file that starts Pro/E and add the del /s lines to it so Pro/E would cleanup itself everytime you started a new session.
 
I had that same issue so I wrote my own VB program:


2006-10-05_153832_PEI_directory_cleaner.zip


With this program, you can specifiy which types of files are to be deleted by entering a filter description. E.g. if you want to delete all files that contain .inf, .ref, .ptd ... etc. extensions or files that contain the word 'temp' in their names, enter: *.inf*;*.ref*;*.ptd*;*temp* as the filter text. You alsohave the option of deleting to recycle bin but it will prompt you for each file depending on your system settings.


Warning: This progam deletes files so make sure you read the readme and .ini files and practice using it on backed-up files first.


I hope this helps.


Note:
You may need to install Comdlg32.ocxon your computer. You can get the file from: http://windowsxp.mvps.org/comdlg32.htm
 
Cant we use the PURGE command...?


I am trying to use the same but does not seem to go anywhere...


Can somebody help me with the syntax. I also had a look at Pro/E Help files.
 
http://www.wascotech.com/purgedrive/

Great little program for cleaning up the mess that Pro-E makes. It has its own recycle and safety bin. I have used it for years. Tech support is very lacking but the program is straight forward and easy to work. I can help you get things set up if you would need any help.
 
Srini


This is how it works for me. Go to: Window>Open system window, then at the cmd prompt type "purge". You need to have your working directory set to the correct directory before hand.


Hope this helps


bobb
 
Hi Guys,


There is a better way to purge Pro/E trail files. You can either download a file called Spekpur.exe from internet or configure your explorer so that you can click your right mouse button and select purge. Personally I prefer Spekpur.exe because you can set a number of version you want to keep while Pro/E purge only keep the latest file.


Kizza
 

Sponsor

Articles From 3DCAD World

Back
Top