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!

"Mapping" Drives

Status
Not open for further replies.

fdsouth

Technical User
Jun 6, 2001
61
US
Has anyone ever "mapped" a network drive from within a vc++ application?

I have written an app that calls another .exe file which needs access to a network drive. I tried setting the whole thing up using UNC pathnames but it wouldn't work. It is an old DOS program that basically runs a sequence of DOS command lines. I don't believe that DOS likes UNC paths very much. Anyway, I digress. Everything works fine if from within Windows I map the network directory so that there is a drive letter for the path. I would like to dynamically map a drive from within my vc++ app and then disable the mapping when the app finishes.

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top