System.Diagnostics.Process.Start (in Network drive)

C

Colin Williams

I am using the code below to map network drive and then fire up an app
in a sub dir of that drive. However when using the file open dialog
from that app, drive K: appears just as Network drive K: (this could
confuse users) rather than showing the path it is mapped to like in
explorer.
Using a batch file to execute these commands works great. Any ideas?


System.Diagnostics.Process.Start("net.exe", "use K:
\\Redgrave\\Data\\DEVL\\Beta\\Tws\\FDSOut");
System.Diagnostics.ProcessStartInfo psi =
new System.Diagnostics.ProcessStartInfo();
psi.FileName = "C:\\WDesign\\WDesign.exe";
psi.WorkingDirectory = "K:\\Training\\WDesign";
psi.WindowStyle = System.Diagnostics.
ProcessWindowStyle.Maximized;
System.Diagnostics.Process p =
System.Diagnostics.Process.Start(psi);
Thanks in advance
 

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

Top