Open a module from batch file

Hi everyone,

I want to create a batch file, which firstly opens sign in window of Doors then opens a specific module in Doors.

Until now I only have line:

Start ""  "C:\\Program Files\\IBM\\Rational\\DOORS\\9.6\\bin\\doors.exe"

Any idea will be really appreciated.

Thanks in advance

Jonny


Jonny Tim - Wed May 15 07:10:06 EDT 2019

Re: Open a module from batch file
PekkaMakinen - Thu May 16 01:00:00 EDT 2019

Read through https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.6.1/com.ibm.doors.configuring.doc/topics/c_clientcommandswitches.html

Use either "-dxl" switch to run DOORS in interactive mode running a DXL script or "-batch" to run DOORS in non-interactive batch mode. This is by the way different "batch" than the one you are referring to.

Re: Open a module from batch file
Jonny Tim - Thu May 16 08:26:14 EDT 2019

PekkaMakinen - Thu May 16 01:00:00 EDT 2019

Read through https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.6.1/com.ibm.doors.configuring.doc/topics/c_clientcommandswitches.html

Use either "-dxl" switch to run DOORS in interactive mode running a DXL script or "-batch" to run DOORS in non-interactive batch mode. This is by the way different "batch" than the one you are referring to.

Thanks for your advice.

But I still have question. Is it possible to open dxl script from batch while doors is open? I mean, this batch script muss open dxl code and not open another doors process.

Re: Open a module from batch file
Jonny Tim - Fri May 17 05:36:24 EDT 2019

Jonny Tim - Thu May 16 08:26:14 EDT 2019

Thanks for your advice.

But I still have question. Is it possible to open dxl script from batch while doors is open? I mean, this batch script muss open dxl code and not open another doors process.

Please Frown

Re: Open a module from batch file
PekkaMakinen - Fri May 17 05:38:58 EDT 2019

Jonny Tim - Thu May 16 08:26:14 EDT 2019

Thanks for your advice.

But I still have question. Is it possible to open dxl script from batch while doors is open? I mean, this batch script muss open dxl code and not open another doors process.

You can connect to a running instance of DOORS through COM / OLE functions but I have no idea how you could do that from a batch file.

What is your use case? What are you trying to implement?

Re: Open a module from batch file
Jonny Tim - Fri May 17 07:14:07 EDT 2019

PekkaMakinen - Fri May 17 05:38:58 EDT 2019

You can connect to a running instance of DOORS through COM / OLE functions but I have no idea how you could do that from a batch file.

What is your use case? What are you trying to implement?

Hi, my batch script is

@echo off

tasklist | find /I "doors" 

if errorlevel 1 ( 
    echo Doors is not open 
        "C:\Program Files\IBM\Rational\DOORS\9.6\bin\doors.exe" -J C:\Projekt -a C:\Projekte\ -d 36667@abc -D "#include <C:\T.dxl>" -W
) else (
        echo Doors is open 
        "C:\Program Files\IBM\Rational\DOORS\9.6\bin\doors.exe"
)

echo on
pause

I want to open doors to run a dxl script. If doors is open, then run only dxl script. If doors is not open, then open doors and run dxl script. The problem here is, everytime when I run batch file to call dxl script, it open a new doors. And I have to wait for a long time..