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: Library function fileGoodPath_
Topic Summary:
Created On: 22-Jun-2005 08:52
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 Tony Goodman, on Wednesday, June 22, 2005 2:24 PM

Answer:
Try the attached.

dosPathName() converts a unix (or DOORS) style path to a DOS or windows style path by replacing '/' with '\\'.

unixPathName() does the reverse.
 22-Jun-2005 08:52
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

Hello,

I am looking for a reference on the library function: fileGoodPath_ does any body know what this function does, and how?

Best Regards,

Edwin Buisman.
Report this to a Moderator Report this to a Moderator
 22-Jun-2005 09:15
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

This function returns a properly formatted path to a given directory. It is defined in DOORSHOME/lib/dxl/utils/fileops.dxl.
See libhtml.dxl in the same directory for an example of how it is used.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 22-Jun-2005 10:45
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

This is OK, but now a new problem.....

c:/directory/file.ext
Should be:
c:\directory\file.ext

I get directory from:

string mpath = path (ModuleItem)
The filename from:
string mName = name (ModuleItem)
....

How do I create the right path (for Windows) from these two functions.

Edited: 22-Jun-2005 at 11:15 by Edwin Buisman
Report this to a Moderator Report this to a Moderator
 22-Jun-2005 11:38
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
Try the attached.

dosPathName() converts a unix (or DOORS) style path to a DOS or windows style path by replacing '/' with '\\'.

unixPathName() does the reverse.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.