From CVF 6.6c I can give the command : Runqq(Explorer.exe, ' 'c) to run Microsoft's Explorer. Instead of using ' 'C, there must be a command to retrieve the selected folder. Can any one help?
Thanks, but that is no the question I had asked. I do not know the path or folder a pirori. In experimenting with Explorer.exe, I found that using the switch /e in the command line, I can manipulate files and folders just as usual. When I want to select a specific folder within Explorer, I first must provide an address bar. By highlighting the character stream and then press Control-C, that data stream becomes available to me in the calling fortran program. This works under Win2000, I have not tried it for Win98SE or XP.
Sorry - I only half understand what you're trying to do. Is this end result you wish to achieve?
1) Pop up a sort of explorer window - basically the file dialog (in windows terminology)
2) Navigate to a specified directory
3) Select a filename
4) Pass the filename back to your program
I didn't understand the datastream bit. Do you mean you have access to clipboard data?
The scenario you described is basically what I want to do.
Step 3 can be either a folder or a filename.
Step 4 is to return the selected item to the fortran program. An example of the call would be helpful.
I have seen some discussions about Fortran 2003 in Http:/
about accessing Command Argument and Environmental Variables, but I have never worked with the "call get_Command_argument" nor do I know if it is available to me in CVF 6.6C.
Why the above experimental procedure works is beyond me. I would like to have a more structured method to rely upon.
I'll check if there is a GUI type method that will work in CVF. I know they exist in Silverfrost/Salford but CVF has all sorts of extensions and non-standard stuff so maybe they do it, maybe they don't.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.