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
I am not sure how you were adding the command before, but here is one solution.
Add the following to the Windows registry:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\ptcpurge]
@="Clean Creo files"
"Extended"="
"Icon"="D:\\PTC\\Creo 2.0\\Parametric\\install\\nt\\creologo.ico"
[HKEY_CLASSES_ROOT\Directory\shell\ptcpurge\command]
@="D:\\working\CLEANPRO-ALL.BAT""%1"
Note: Under the main node, the "Extended" key is a flag - if it exists, you must use Shift + RMB for command to appear. Good if your context menu is already cluttered! Icon entry is optional, but makes it standout.
There are many ways to merge into the registry...for a small number of systems, just paste the lines to a text file "ptcpurge.reg" and double click file to add.
Many customers also add cleanup scripts to Creo startup script, Windows login script, or scheduled task to automate and avoid the need for user intervention.
There are several utilities that can perform this task, as well as purge old .# recursively.
http://www.prousercarolinas.org/tips/utilities.htm#cgn