| View previous topic :: View next topic |
| Author |
Message |
Kadmael Newbie

Joined: 30 May 2005 Posts: 2
|
Posted: Mon May 30, 2005 5:39 am Post subject: How to read a Windows environmentvariable from OO macro ? |
|
|
Hi,
I am new to OO basic.
I am trying to read a Windows environment variable from an OO macro (to get the home directory of the program I want to launch from OpenOffice)
Is there a way to do that ?
Alternatively, I could use a Windows registry key if this is easier ?
Thanks for any help !
Kadmael
 |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
Kadmael Newbie

Joined: 30 May 2005 Posts: 2
|
Posted: Tue May 31, 2005 1:07 am Post subject: It works ! |
|
|
Thanks a lot : I found exactly the answer I needed !
Access to Windows environment vairaibles is easy through :
environ("WindowsVariable")
I created a macro like :
print environ("WindowsVariable")
And it gave me the variable value.
Again Thanks ! |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
|