By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Sep 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.