Results 1 to 6 of 6
  1. #1

    Question batch file to control proe

    Dear members,

    I need to your help on creating the batch file to set working directory automatically when i open proe.

    I searched in other threads in this forum and tried but not succeeded. I tired by trail file, mapkey but I want to control proe through batch file.

    The following things has to happen when I open proe.
    1) Working directory has to set automatically.
    2) Load file,,tree.cfg from the location where I saved.

    Please help to write the code. Thanks in advance.

  2. #2
    I don't think it's possible to set the working directory unless it's the same as the startup directory. Here is the batch file we use to set the startup directory to C:\Wildfire
    (where we have the config & tree.cfg files)

    @echo off
    cd \Wildfire
    "C:\Program Files\PTC\Creo 2.0\Parametric\bin\parametric.exe"

  3. #3
    Hi Robertib,

    Thanks for the reply.

    Is it possible to run the mapkey by batch file?

    Basic idea is after open proe mapkey has to run automatically to set the working directory and load config files.

  4. #4
    You can place multiple shortcuts on your desktop to start Pro/E. Each shortcut can have a different 'Start In" directory. This will set the initial working directory.
    PTC quality philosophy: We've upped our quality standards. Up yours.

  5. #5
    Using the 'start in' field of the shortcut used to launch Proe, as dr_gallup suggested, is the easiest way to set the working directory at startup.

    Pro/E will load config files (.pro & .win) from specific folders at startup:

    • The 'text' folder of the install location
    • The user's 'home' folder, as defined by Windows
    • The 'start in' folder as defined in the shortcut

    You could create a mapkey to set the working directory and load config files from a specific location, if you need to. You'd need to create a trail file that would run the mapkey and set the trail file to run at start.
    Doug Schaefer | Director of Design and Engineering
    Concept Engineering | Columbus, OH

    614.279.8771 |

  6. #6
    Dear dr_gallup & dgs,

    Thanks for your suggestions. I created the startin folder which contains config files. In proe I created mapkey to set working directory and added that map key to new menu. Now its working fine.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts