What is the easiest way in Windows to get the location of a file?
I have a filename that was returned to me by the Windows function GetModuleName (returns the full name of a module (exe or dll)), and which could be in any valid filename format, e.g.
- myfile.dll
- c:\windows\myfile.dll
- \?\c:\windows\myfile.dll (or something like this)
- x:\bin\myfile.dll
- \myserver\myshare\myfile.dll
What is the easiest way to know whether the path refers to a local drive or to a network drive?