- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My CVF documentation tell me to use fullpathqq to obtain the path of a file. Doesn't work. It seems that fullpathqq is the Fortran equavalent of the C function _fullpath, which constructs a full filename by adding a path to a name. Is it possible that the cvf documentation is wrong? And if it is, who tested out that example in the cvf manual?
Link Copied
12 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just tried the example (looking at the 6.5 documentation) and it seems to do what it advertises. What exactly do you think is the difference?
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My documentation says that fullpathqq "Returns the full path for a specified file or directory.", and that the syntax is "result = FULLPATHQQ ( name, pathbuf ) ", where name is the "Item for which you want the full path.", and pathbuf is "Buffer to receive full path of the item specified in name."
Yet when I use it, all it does it add the current working path to the name.
I expected it to find the path of the file 'name'.
Yet when I use it, all it does it add the current working path to the name.
I expected it to find the path of the file 'name'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, I think I see. Do you think that it searches for the file using the PATH environment variable and tells you where it found it? It doesn't, and the documentation doesn't say it does. The manual says the file specified: "Can be the name of a file in the current directory, a relative directory or filename, or a network uniform naming convention (UNC) path. " The idea is that it returns the fully qualified path (full path) for a file specification that is not fully qualified, using the normal file specification conventions. So if it is a file in the current directory (and no directory was specified), you get the current directory. If you say ..file.txt, you get the full path of the parent directory, and so on.
I think you misunderstood the description.
Steve
I think you misunderstood the description.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jeepers, where did you get all that description. My manual doesn't say any of that. I am looking at dfmain.chm, dated 2/3/2000. (And why am I looking at that specific file? Well, as we all know, the CVF manual gets lost when one loads a new version of Visual C++).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am looking at the CVF 6.5A version of the manual. I don't have the older one handy to see if it was different - it may have been.
You should see our knowledge base article Q1031 regarding the help collections. No need to explicitly look at DFMAIN.CHM if you don't want to.
Steve
You should see our knowledge base article Q1031 regarding the help collections. No need to explicitly look at DFMAIN.CHM if you don't want to.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have been (nearly) here before - see the exchange on GetFullPathName - currently down near No. 90. I still have no solution (other than my successful DOS version) for a complete search of a drive for a file, returning the full path(s). Does anyone know how?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What, exactly, would you like such a function to do? Isn't this just "search all possible drives for the file"? Or do you want to restrict it to the PATH environment variable?
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For my purposes, I would not want to have all possible drives searched, but would be satisfied with searching the path environmental variable as long as it is capable of searching in all its sub-directories if requested. This would enable me to search either a complete drive if I need to, or perhaps just a single directory if I have more specific information on the file's location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, you'll have to write such a routine yourself. That's not what FULLPATHQQ is for (it returns the fully qualified file path for the given file).
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For my purposes, I would not want to have all possible drives searched, but would be satisfied with searching the path environmental variable as long as it is capable of searching in all its sub-directories if requested. This would enable me to search either a complete drive if I need to, or perhaps just a single directory if I have more specific information on the file's location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sorry my reply was duplicated - your website is being user-unfriendly from this end, including appearing to let me edit my reply, but then submitting the original.
On the searching for files topic, I think I will stick with my DOS command called by SYSTEMQQ until your Fortran has something to offer - something you might put in your next upgrade perhaps?
Over and out.
On the searching for files topic, I think I will stick with my DOS command called by SYSTEMQQ until your Fortran has something to offer - something you might put in your next upgrade perhaps?
Over and out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see us adding a routine of this nature. We already offer routines for traversing directories.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page