Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interfacing with Explorer

Status
Not open for further replies.

mtnengr

Technical User
Jul 24, 2007
5
US
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?
 
Just put the full path name of the folder. For instance, if you wish to look at C:\Windows\System32\drivers\etc
Code:
Runqq('Explorer.exe', 'C:\Windows\System32\drivers\etc')
 
XWB

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?
 
XWB

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.
 
The command line argument is called getarg in CVF. iargc indicates how many arguments there are.

Get a copy of the manual from
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top