![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Export to Word script to run as a scheduled task on Windows Topic Summary: Created On: 16-Sep-2008 18:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'd like to export all the modules (including any OLE objects) in a project to separate word documents. I'd like the script to run as a scheduled task. I've looked at doors.dxl provided by Telelogic, that comes with the installation.
I figured that I need to get rid of the GUI to avoid all the clicks, in order to get the script to do what I need. Segregating the parts of the code so that the script does what I need seems to be an involved task in itself. Please let me know if anyone has a better idea on how to go about this. Thank You. |
|
![]() |
|
![]() |
|
Scheduled Task means running DOORS in batch mode. The Scheduled Task itself will need to invoke DOORS as well as use the Command Line Switches '-batch', '-user' and '-password', meaning your password will be visible in the Scheduled Task. The task may look like this:
"c:\Program Files\Telelogic\DOORS_8.1\bin\doors.exe" -b "c:\MyFolder\MyBatchExport.dxl" -u MyUserName -P MyPassword all in one line. The DXL you use must be sensitive to batchMode, meaning it doesn't open up views and it doesn't do things like 'ack' or 'confirm' or display dialogs to the user, since there's no interface and no user. 'print' statements work but are best used for debugging as they will persist in a DOS window even after the batch is finished. The batch file will probably have to set the current folder, perhaps: current Folder = folder("/MyProject/MyFolder") First get the script to work interactively, then go for batchmode. Expect difficulties and frustration. - Louie |
|
![]() |
|
![]() |
|
Since, as Louie mentions, the username and password are visible in the batch file, it might be an idea to add a new doors user.'Batch' or somesuch. Give this virtual user just enough power to get the job done.
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
Got it figured out....works fine now.
Edited: 25-Sep-2008 at 01:19 by anant mitra |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.