|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.Diagnostics.Process.StartI 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 |
|||||||||||||||||||||||