![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Copying Files Topic Summary: Copying file from DOORS server to user's hard drive. Created On: 31-Oct-2005 12:19 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thanks for all the help. Both methods worked, but I ran into problems when the system had to check if the file existed (if it didn't exist, the program would crash since everything is pre-compiled). I came up with an entirely different solution that solves the problem I originally had, but I appreciate all the input. This forum is really helpful and a fantastic resource. | |
![]() |
|
Hello, I would like to write a file to a directory that I've created using the mkdir(Directory_Name) function. Is there a DXL function that will copy a file from the DOORS server to the user's DOORS directory on his or her hard drive? Thanks in advance.
-Gary
|
|
![]() |
|
![]() |
|
DXL can do a copy pretty easily so long as the user could do the same thing outside of DOORS; specifically if the files on \\ServerWithDoorsDB are viewable with Windows Explorer. DXL could issue the "system" command featuring a "copy" DOS ..err.. command prompt command.
If the server housing the database is hidden from users (the only way in is using the DOORS port), then you have what is probably an insurmountable problem. You'd have to find a way to open the file on the server using Configuration File access, issuiong config-file commands using ".." in the path; perhaps "..\..\..\Program Files\FileNameIWantToCopy". Then the DXL would copy the contents and then write the contents to the local C drive. I doubt Config-File commands will let you do that but you could give it a try. - Louie |
|
![]() |
|
![]() |
|
Configuration files are probably the way to go with this one.
Take a look at confDownloadFile() and confUploadFile(). But you will probably need to use confMkdir() instead of mkdir() to be sure your paths are consistent. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 1-Nov-2005 at 13:20 by Tony Goodman |
|
![]() |
|
![]() |
|
Didn't try it. But the DXL manual says if you use ".." designations then it won't work. This pretty much disallows use if the file isn't a ConfigFile to start with.
|
|
![]() |
|
![]() |
|
Thanks for all the help. Both methods worked, but I ran into problems when the system had to check if the file existed (if it didn't exist, the program would crash since everything is pre-compiled). I came up with an entirely different solution that solves the problem I originally had, but I appreciate all the input. This forum is really helpful and a fantastic resource.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copying Files
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.