Here is some interesting code I found while browsing the newsgroups:
This code will map a network drive for you. Basically it just uses your Windows OS to do the mapping but is pretty neat to know. After it maps the directory is executes an application and sets the working directory.Code:System.Diagnostics.Process.Start("net.exe", "use K: \\Server\URI\\path\\here"); System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); psi.FileName = "C:\\application.exe"; psi.WorkingDirectory = "K:\\working\\directory"; psi.WindowStyle = System.Diagnostics. ProcessWindowStyle.Maximized; System.Diagnostics.Process p = System.Diagnostics.Process.Start(psi);
Void
Thanks for the post Void. This may come in handy although it is very simple and probably would just be a matter of "thinking" about it.
Again, i have no idea what you are talking about but it might come in handy later i guess. Thanks?
There are currently 4 users browsing this thread. (0 members and 4 guests)
Bookmarks