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
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