![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to use environment variables Topic Summary: Created On: 6-Sep-2002 10:37 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: No that wont work. What I do is to start the doors client using the -addins switch. Then you can include any file you like relative to that path. For example I control my custom menus centrally on the server at \\server_name\doors\addins. All users start doors with the -addins "\\server_name\doors\addins" switch added to their desktop shortcut. The menu scripts in the addins directory do not contain any code, just #includes of scripts in my DXL library which is kept under \\server_name\doors\dxl_library. I can include files using a relative #include <..\dxl_library\folder_name\script_name.dxl> This also means that you can move your DXL scripts anywhere and you only have to change the desktop shortcut on each client, not the source code. Hope this helps. | |
![]() |
|
Hallo, I have setup an evironment variable at win2000 with following DXL_SCRIPTS=g:\dxl_scripts\. Now I want to use this path for the including, like this: #include getenv("DXL_SCRIPTS")"\\exaample.inc"
The problem is it doesn't work. Is there someone who can help me? Thanks |
|
![]() |
|
![]() |
|
No that wont work. What I do is to start the doors client using the -addins switch. Then you can include any file you like relative to that path.
For example I control my custom menus centrally on the server at \\server_name\doors\addins. All users start doors with the -addins "\\server_name\doors\addins" switch added to their desktop shortcut. The menu scripts in the addins directory do not contain any code, just #includes of scripts in my DXL library which is kept under \\server_name\doors\dxl_library. I can include files using a relative #include <..\dxl_library\folder_name\script_name.dxl> This also means that you can move your DXL scripts anywhere and you only have to change the desktop shortcut on each client, not the source code. Hope this helps. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to use environment variables
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.