|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Open windows explorer at server pathI am trying to open windows explorer at a specific path on a server.
Path is not found whe run. It works ok using a local path. How do i address a server? Code as follows; { System.Diagnostics.ProcessStartInfo exploreTest = new System.Diagnostics.ProcessStartInfo(); exploreTest.FileName = "explorer.exe"; exploreTest.Arguments ="\"\\servername\\path\\"; System.Diagnostics.Process.Start(exploreTest); } Thanks Colin Williams Hello, Colin!
CW> I am trying to open windows explorer at a specific path on a server. CW> Path is not found CW> whe run. It works ok using a local path. How do i address a server? CW> Code as follows; CW> { CW> System.Diagnostics.ProcessStartInfo exploreTest CW> = new System.Diagnostics.ProcessStartInfo(); CW> exploreTest.FileName = "explorer.exe"; CW> exploreTest.Arguments ="\"\\servername\\path\\"; CW> System.Diagnostics.Process.Start(exploreTest); CW> } You're missing double "\" symbol. Server name must be prefixed with doble "\" So, change this line of code exploreTest.Arguments ="\\\\servername\\path\\"; or exploreTest.Arguments = @"\\servername\path\"; |
|||||||||||||||||||||||