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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browsing directories

Status
Not open for further replies.

gummibaer

Programmer
Jan 5, 2007
394
DE
Hi,

anybody still using the Compaq Fortran Compiler ?

If yes, I would be happy if this someone could give me a hint on how I can build a resource to navigate through my drives and directories.

I have been using the Salford compiler (personal edition) before, where there is such a predefined tool available. But I want to build a prog on a commercial basis, so my personal edition not do and I have to use my payware Compaq compiler.

Any hint would be appreciated.

Norbert
 
Hi gummibaer,

I think, you can do that using your OpSys commands and therefore the intrinsic function system() is available.
Example:
Code:
...
call system (cmd_string, cmd_rc)
! if command not succesfull then stop the program
if ( cmd_rc .ne. 0 ) stop 'system: Error !!!'
...

 
Thanks mikrom,

but this is not exactly what I want.

I would prfer for a wondows-explorer like window to open and the user to navigate to the directory he is interested in.

That possible ?

Last thing I treid is calling explorer.exe by using the runqq routine. This would open windows explorer all right, but my prog would not wait for the explorer to be closed again. Any solution in this approach ?

Norbert
 
Hi gummibaer,

I tried to call explorer using fortran intrinsic function system(), but with the same behaviour: it doesn't wait until explorer terminates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top