cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

config.pro mapkey variables

lbalthazor-2
1-Visitor

config.pro mapkey variables

Is there a way to use an O/Svariable such as %userprofile% within a mapkey?


For example, I am trying to replace:
mapkey(continued) `c:\\User\\<userlogin>\\Documents\\config.pro`;\
With:
mapkey(continued) `c:\\%userprofile%\\Documents\\config.pro`;\


The mapkey does not recognize the %userprofile% variable.


Thank you,


Lee


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Yep, but you only need a single $ prefix:



This:



c:\\$userprofile\\Documents\\config.pro



Not this:



c:\\%userprofile%\\Documents\\config.pro



Doug Schaefer
--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags