Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: How to use environment variables
Topic Summary:
Created On: 6-Sep-2002 10:37
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Thursday, September 12, 2002 3:38 PM

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.
 12-Sep-2002 10:37
User is offline View Users Profile Print this message


Nediljko Rapic

Posts: 1
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 12-Sep-2002 10:38
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer 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.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.