Olaf Corten's Tips & Tricks for Pro/ENGINEER: Data Management

Pro/ENGINEER Tips & Tricks: Windows NT

- Last modified: Mar 27 2003 -

This page is a compilation of tips & tricks related to WindowsNT. They are not necessarily my own ideas. Use them at your own risk.

WindowsNT


Enhancing Windows Explorer

Here are some tools to enhance Windows Explorer.

After installation you will have additional shortcuts in the menu when you right-mouse-click on a folder.

Download ExpUtils.zip (v.2), unpack it and install all .inf files by selecting them with your right mouse and choosing Install.

20010301 - v.2: This version has been fixed by Jason Glithero for paths with spaces in them

  • DOSHERE.INF
    To open a DOS shell in the selected folder.
  • EXPLORE.INF
    To start explorer from the selected folder.
  • PurgePro.INF
    To purge selected folder.
  • PurgeProSubs.INF
    To recursively purge selected folder and all subfolders.
  • PurgeSubs.bat You need to place purgesubs.bat in a directory which is in your path. It will call purge.bat (standard PTC command) in all recursively found directories.

You will be able to uninstall them with the Add/Remove Programs tool in your Control Panel
Or (if this doesn't work) you can uninstall them manually:

  • Open Windows Explorer
  • Go to: View -> Options -> File Types (or Tools -> Folder Options -> File Types or something like it)
  • Find the File Folder type and Edit it.
  • Now Remove the Purge buttons and close everything again.

These files were kindly donated by James Whiterspoon from Intel

P.S. When you can't install .inf files by rightclicking them because the Install option isn't in the menu you need to edit your registry and change the Default value of .INF in HKEY_CLASSES_ROOT to inffiles again.


Starting external programs

A few tips to start external programs from within Pro/ENGINEER:

  • Since R20 you can only start external programs by creating a mapkey. You can do this with the mapkey dialogue (Utilities -> Mapkeys). When defining a new mapkey you can go to the OS script tab. There you can type in any command you would like to run.
  • After that you can assign the mapkey to a certain menu through the Customize Screen utility or with the men_def.pro file.
  • Use the start command to run applications in the background. This will give the controls back to Pro/E after the command has been started. Otherwise Pro/E keeps waiting for the program to finish (which could be of use if you run a recursive purge utility for instance)
  • Here an example to start netscape with a page of an internal Intranet:
    mapkey hth @MAPKEY_NAMEIntranet Thread Help;\
    mapkey(continued) @MAPKEY_LABELStart the Intranet Thread Help;\
    mapkey(continued) @SYSTEMstart C:\\Progra~1\\Netscape\\Communicator\\Pro\
    mapkey(continued) gram\\netscape.exe http://intranet-server/proe/hand\
    mapkey(continued) book/parts.html\#threads;
    
  • When using the start command you can even just point to a file. The start command will then run the program which is in windows associated to that extension.
    Example, suppose you've associated notepad to the .out extension. Then you can use this mapkey to view the std.out file in your working dir:
    mapkey vstd @MAPKEY_NAMEView std.out;\
    mapkey(continued) @MAPKEY_LABELView std.out in Working Dir;\
    mapkey(continued) @SYSTEMstart std.out;
    


Click to receive email
when this page changes
Powered by NetMind