Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

"Inquire" on drive letter mapping

lars_mossberg
Beginner
460 Views

Is there a way in the IVF (and/or CVF) environment to find out the the network folder that a drive letter is mapped to?

Background: I want to be able to determine the "exact" definition of a file name so that I can be sure from where it originates in a network.

If I, for example, open a file "R: est.txt" and
open another file \nodedir1dir2 est.txthowam I know in my Fortran program that it is the same file when "R"has beenmapped to \nodedir1dir2?

Lars M

0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
460 Views
WNetGetUniversalName is your friend; here is a simple example, and here is a bulletproof one which handles the local files correctly and works even on Win9x (see description).
0 Kudos
lars_mossberg
Beginner
460 Views

Thank youJugoslav!

Prompt and knowledgable as always!

Lars M

0 Kudos
Reply