Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.
1. Create a folder on the PC for each user underneath a top level folder eg c:\pro_users\fred, c:\pro_users\stan etc
2. Create a multiple option batch file so when the user runs the batch file it requests which user name they are and then according to the users reply input the batch file sets the system variables for the cache location and starts up PROE
Here is an example batch file that you can copy and paste
@ECHO OFF
CLS
:LOOP
ECHO WHO ARE YOU?
ECHO =====================
ECHO A. JOHN
ECHO =====================
ECHO B. FRED
ECHO =====================
ECHO C. SIMON
ECHO =====================
ECHO D. DAVE
ECHO =====================
ECHO Q. QUIT
ECHO =====================
:: SET /P prompts for input and sets the variable
:: to whatever the user types
SET Choice=
SET /P Choice=Type the letter and press Enter:
:: The syntax in the next line extracts the substring
:: starting at 0 (the beginning) and 1 character long
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
ECHO.
:: /I makes the IF comparison case-insensitive
IF /I '%Choice%'=='A' GOTO ItemA
IF /I '%Choice%'=='B' GOTO ItemB
IF /I '%Choice%'=='C' GOTO ItemC
IF /I '%Choice%'=='D' GOTO ItemD
IF /I '%Choice%'=='Q' GOTO End
ECHO "%Choice%" is not valid. Please try again.
ECHO.
GOTO Loop
:ItemA
@echo off
cls
REM SET THE ENVIRONMENT VARIABLES FOR THE LOCAL CACHE
set PTC_WF_ROOT=c:\pro_users\JOHN\.wf
set PTC_WF_CACHE=c:\pro_users\JOHN\local_cache
REM START PROE
c:\ptc\wildfire5\bin\proe.exe
GOTO End
:ItemB
@echo off
cls
REM SET THE ENVIRONMENT VARIABLES FOR THE LOCAL CACHE
set PTC_WF_ROOT=c:\pro_users\FRED\.wf
set PTC_WF_CACHE=c:\pro_users\FRED\local_cache
REM START PROE
c:\ptc\wildfire5\bin\proe.exe
GOTO End
:ItemC
@echo off
cls
REM SET THE ENVIRONMENT VARIABLES FOR THE LOCAL CACHE
set PTC_WF_ROOT=c:\pro_users\SIMON\.wf
set PTC_WF_CACHE=c:\pro_users\SIMON\local_cache
REM START PROE
c:\ptc\wildfire5\bin\proe.exe
GOTO End
:ItemD
@echo off
cls
REM SET THE ENVIRONMENT VARIABLES FOR THE LOCAL CACHE
set PTC_WF_ROOT=c:\pro_users\DAVE\.wf
set PTC_WF_CACHE=c:\pro_users\DAVE\local_cache
REM START PROE
c:\ptc\wildfire5\bin\proe.exe
GOTO End
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.