Book a Demo

Author Topic: Expanded Local Path in Add-in  (Read 3995 times)

DigitalEd

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Expanded Local Path in Add-in
« on: September 03, 2008, 02:34:13 am »
Hey all,
  With local paths setup correctly, how can an add-in get the expanded path that the local path setting maps to?

If I have %EA_CODE% map to c:\temp, how can I get my add-in to know that?
I'm using EA 7.0.

----- Ed

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: Expanded Local Path in Add-in
« Reply #1 on: September 09, 2008, 08:15:52 am »
Try using GetEnvironmentVariable method.

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Expanded Local Path in Add-in
« Reply #2 on: April 29, 2009, 08:43:57 am »
The method "GetEnvironmentVariable" doesn't appear to work.

Any other idea in order to read/write the Local Paths variables via API?

That's very important for us!!!

Thks,
« Last Edit: April 29, 2009, 09:11:00 am by Deiser »

lubos

  • EA User
  • **
  • Posts: 101
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Expanded Local Path in Add-in
« Reply #3 on: April 30, 2009, 07:05:05 pm »
we do it by parsing

System.Environment.GetEnvironmentVariable("USERPROFILE") + "\\Applications Data \\Sparx Systems\\EA\\paths.txt";

where these settings are stored.