Naja, genau so komfortabel geht es nicht.
Genauer gesagt musst du die cmd.exe manuell aufrufen, wie in dieser SO Frahe gezeigt:
stackoverflow.com/qu...ands/1469790#1469790
Um das Konsolenfesnder zu verbergen also:
C#-Quelltext
1: 2: 3: 4: 5: 6: 7:
| System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo.FileName = "cmd.exe"; startInfo.Arguments = @"/C explorer \\" + IP + @"\test\"; process.StartInfo = startInfo; process.Start(); |
Das kannst du natürlich relativ einfach in eine Methode kapseln.