espe
January 24th, 2008, 05:44 PM
Hi,
My problem is the following:
By subst method I substitute for example:
subst x: c:\something
As you know subst without parameters will display:
X: => c:\something
I try to write an application which should among other things retrive the same info as subst without parameters, I mean I'll pass X for example, and I'll get a path c:\something.
I've read that subst uses a QueryDosDevice but I think it's not exactly what I need. The best function I've found so far is GetVolumePathName, but it returns only mounting point - C:\ in my example above.
I've tried also different functions which I've found in MSDN (in Volume Management Functions), unfortunately all my tries failed.
I don't want to ready solution, only some advices and suggestions.
If I duplicated problem I'm sorry but I hadn't found the similar in this forum.
Regards
Seweryn
Hi,
I've found a code which works as a subst:
http://win32.mvps.org/misc/ddd_qdd.html
Topic can be closed
My problem is the following:
By subst method I substitute for example:
subst x: c:\something
As you know subst without parameters will display:
X: => c:\something
I try to write an application which should among other things retrive the same info as subst without parameters, I mean I'll pass X for example, and I'll get a path c:\something.
I've read that subst uses a QueryDosDevice but I think it's not exactly what I need. The best function I've found so far is GetVolumePathName, but it returns only mounting point - C:\ in my example above.
I've tried also different functions which I've found in MSDN (in Volume Management Functions), unfortunately all my tries failed.
I don't want to ready solution, only some advices and suggestions.
If I duplicated problem I'm sorry but I hadn't found the similar in this forum.
Regards
Seweryn
Hi,
I've found a code which works as a subst:
http://win32.mvps.org/misc/ddd_qdd.html
Topic can be closed