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.

Delete old version..

cristelino

New member
In the past, use a small toatre that file to delete old
files created by ProE
His name was SepKur and was made by Spekan Engineering.
Looking for that file now also a small, free if possible,
to remove all old files created.I do not have time to
open each file and remove previous versions manually.
Suggestions my friends?
Edited by: cristelino
 
It might be an old post but there are always new users.

You can use the following to purge all kinds of unwanted
files from your proe directory. Just copy the following
text to notepad and rename the extension from .txt to
.bat then put the file into the folder you want to clean
up, double-click on it to run. Make sure you know which
files you do and don't need, you can edit the part of the
text with the file types to customise this if req'd.


@echo off
set MC=unset
if "%PROCESSOR%" == "INTEL_64" set MC=ia64_nt
if "%PROCESSOR%" == "INTEL_486" set MC=i486_nt
if "%PROCESSOR_ARCHITECTURE%" == "IA64" set MC=ia64_nt
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set
MC=x86e_win64
if "%PROCESSOR_ARCHITECTURE%" == "x86" set MC=i486_nt
if not "%MC%" == "unset" goto mc_done
echo ERROR Cannot detect what machine type you have.
echo Please make one of the following settings:
echo.
echo set PROCESSOR=INTEL_486- For Windows NT Intel
based machines.
echo.
echo set PROCESSOR=INTEL_64- For Windows Intel
Itanium based machines.
echo.
echo set PROCESSOR_ARCHITECTURE=AMD64 - For Windows AMD
64 based machines.
echo.
exit
:mc_done
set PRO_MACHINE_TYPE=%MC%
if "%PROOBJ_START_DIRECTORY%" == "" set PRO_DIRECTORY=
if NOT "%PRO_DIRECTORY%" == ""
"%PRO_DIRECTORY%\bin\%MC%_ptc_setvars" %0 "purge" bat
if "%PRO_DIRECTORY%" == "" %MC%_ptc_setvars %0 "purge"
bat
call ptc_setvars.bat
del ptc_setvars.bat
set start_cmd=start ""
set PRO_DIRECTORY=%PRODIR%
if NOT "%PTCPATH%" == "" goto ptcpathset
set path=%PRO_DIRECTORY%\bin;%path%
set PTCPATH=true
:ptcpathset
"%PRODIR%\%MC%\obj\purge.exe" %1 %2 %3 %4 %5
::pause
@echo off
:: title ProCleanUp
:start
time /t
:Cleaning
echo Cleaning............. %1
IF EXIST .* del /q .*
IF EXIST *.als del /q *.als
IF EXIST *.log.* del /q *.log.*
IF EXIST *.inf.* del /q *.inf.*
IF EXIST *.crc.* del /q *.crc.*
IF EXIST *.ref.* del /q *.ref.*
IF EXIST *.ptd.* del /q *.ptd.*
IF EXIST *.tst.* del /q *.tst.*
IF EXIST *.memb.* del /q *.memb.*
IF EXIST *.ers.* del /q *.ers.*
IF EXIST *.info.* del /q *.info.*
IF EXIST *.lst.* del /q *.lst.*
IF EXIST *.ncl.* del /q *.ncl.*
IF EXIST *.shd.* del /q *.shd.*
IF EXIST *.tph.* del /q *.tph.*
IF EXIST *.ger.* del /q *.ger.*
IF EXIST *.m_p.* del /q *.m_p.*
IF EXIST *.plt.* del /q *.plt.*
IF EXIST *.err.* del /q *.err.*
IF EXIST *.bom.* del /q *.bom.*
IF EXIST *.chk del /q *.chk
IF EXIST *.ptb del /q *.ptb
IF EXIST *.xpr del /q *.xpr
IF EXIST *.fra del /q *.fra
IF EXIST *.xas del /q *.xas
IF EXIST *.idx del /q *.idx
IF EXIST trail.txt* del /q trail.txt*
IF EXIST pdm_trl* del /q pdm_trl*
IF EXIST std.out del /q std.out
IF EXIST rename_this_*.* del /q rename_this_*.*
IF EXIST prt????.prt* del /q prt????.prt*
IF EXIST asm????.asm* del /q asm????.asm*
IF EXIST dgm????.dgm* del /q dgm????.dgm*
IF EXIST drw????.drw* del /q drw????.drw*
IF EXIST s2d????.sec* del /q s2d????.sec*
IF EXIST lay????.lay* del /q lay????.lay*
IF EXIST current_session.pro del /q
current_session.pro
IF EXIST ptcs.txt del /q ptcs.txt
IF EXIST ptcf.cmd del /q ptcf.cmd
echo.
exit /B %ERRORLEVEL%
:ptc_end
 

Sponsor

Articles From 3DCAD World

Back
Top