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: DOORS command line switches
Topic Summary: Is there a limit?
Created On: 3-Nov-2006 20:03
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.
 3-Nov-2006 20:03
User is offline View Users Profile Print this message


Heather Linsk

Posts: 50
Joined: 7-Mar-2006

Is there a limit to the number of command line switches allowed in a DOORS shortcut?

Currently I have:

"C:\Program Files\Telelogic\DOORS_8.1\bin\doors.exe" -d myport@myserver -o r -O r -a "%DXL_Home%addins" -A "%DXL_Home%attrib\060504" -J "%DXL_Home%project" -L "%DXL_Home%layout\060504"

Every option works as long as it is not the last one in the list.

Thoughts?

Heather

-------------------------
Heather Linsk
Lead Engineer
General Dynamics AIS
413-494-7095
Report this to a Moderator Report this to a Moderator
 6-Nov-2006 11:11
User is offline View Users Profile Print this message


Hazel Woodcock

Posts: 78
Joined: 6-May-2005

Have you tried adding another one to the list to see if it is the last one, or a hard limit?

Hazel
Report this to a Moderator Report this to a Moderator
 6-Nov-2006 19:03
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 58
Joined: 17-Oct-2006

Heather,

Regarding the command line question:

"C:\Program Files\Telelogic\DOORS_8.1\bin\doors.exe" -d myport@myserver -o r -O r -a "%DXL_Home%addins" -A "%DXL_Home%attrib\060504" -J "%DXL_Home%project" -L "%DXL_Home%layout\060504"

#1. I assume you know what the DXL_Home Environment variable is set to.
#2. How long does the entire line (in characters) resolve too?
#3. Are you sure all the folders you are attempting to resolve exist?
#4. If you set an environment variable with the same command line convention check to see if DOORs can resolve the entire line using a print env("MyVar") funtion.

I am trying to help figure out if this is an operating system side problem or a DOORs side problem.

Report this to a Moderator Report this to a Moderator
 6-Nov-2006 19:24
User is offline View Users Profile Print this message


Heather Linsk

Posts: 50
Joined: 7-Mar-2006

#1 - Yes I do. 
#2 -  278
#3 -  Yes the folders exist.  I can get the swtiches to work individually.
#4 - DOORS is able to resolve the environment variable.

After doing this exercise, I put my money on a OS limitation.  Windows probably chops the string at 256.

-------------------------
Heather Linsk
Lead Engineer
General Dynamics AIS
413-494-7095
Report this to a Moderator Report this to a Moderator
 6-Nov-2006 20:08
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 58
Joined: 17-Oct-2006

I forgot to ask your OS. Sorry.
I found this information on the web but I cannot verify it's accuracy.
Although, my gut tells me you are dealing with an OS limitation...


Long Commands
Under Windows NT, the command line is limited to 256 characters.
Under Windows 2000, the command line is limited to 2046 characters.
Under Windows XP, the command line is limited to 8190 characters.

But if you have C:\Program Files\Telelogic\DOORS_8.1\bin already in your PATH environment variable you should be able to just chop your command line to say:

doors.exe -d myport@myserver -o r -O r -a "%DXL_Home%addins" -A "%DXL_Home%attrib\060504" -J "%DXL_Home%project" -L "%DXL_Home%layout\060504"
Report this to a Moderator Report this to a Moderator
 6-Nov-2006 20:11
User is offline View Users Profile Print this message


Heather Linsk

Posts: 50
Joined: 7-Mar-2006

I am running Windows XP, so I shouldn't have a string length issue.



-------------------------
Heather Linsk
Lead Engineer
General Dynamics AIS
413-494-7095
Report this to a Moderator Report this to a Moderator
 6-Nov-2006 21:47
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 58
Joined: 17-Oct-2006

It would seem that way Heather, but I would recommend trying to set the path and trim your command line down as much as you can. Maybe temporarily moving the folders into a shorter path.

It is possible that it is DOORS that cannot handle a command line longer than 255.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.