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: 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
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 Gary Artinian, on Thursday, November 3, 2005 2:36 PM

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.
 31-Oct-2005 12:19
User is offline View Users Profile Print this message


Gary Artinian

Posts: 5
Joined: 10-Oct-2005

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
Report this to a Moderator Report this to a Moderator
 31-Oct-2005 22:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 1-Nov-2005 13:18
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 2-Nov-2005 19:06
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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.
Report this to a Moderator Report this to a Moderator
 3-Nov-2005 14:36
User is offline View Users Profile Print this message


Gary Artinian

Posts: 5
Joined: 10-Oct-2005

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