Getting the physical path of network drive.

R

rony_16

Hi ,
I am writing a program that part of than program if to add a new
network drive to the user.
The adding part i know how to do (by win api "WNetAddConnection2A") but
i want to check first if this path (network path) exist of his
computer, if it does , what is the drive name.
to do this i need some how to get the network drive on the local
computer by the network path (\\comp1\C$\reports).

How do i do that ?
some things that i found ...
* I think that i need to use "WNetGetResourceInformation" win api
function, but i can't find how to use it.

Please help, Rony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top