I Batch-Datei finden, die Wi-Fi-Hotspot automatisch starten, also ich brauche ein Programm in Visual Studio zu machen, dass die Batch-DateiWie ein Programm erstellen, die Batchdatei ausführen
Execute batch-file to start wifi hotspot as admin
I Batch-Datei finden, die Wi-Fi-Hotspot automatisch starten, also ich brauche ein Programm in Visual Studio zu machen, dass die Batch-DateiWie ein Programm erstellen, die Batchdatei ausführen
Execute batch-file to start wifi hotspot as admin
// Start the child process.
Process p = new Process();
// Redirect the output stream of the child process.
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "YOURBATCHFILE.bat";
p.Start();
// Do not wait for the child process to exit before
// reading to the end of its redirected stream.
// p.WaitForExit();
// Read the output stream first and then wait.
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
lief Code stammt von MSDN.
einfach ein Programm schreiben diese Codezeile enthält:
System.Diagnostics.Process.Start("c:\\batchfilename.bat");
Sollte für Ihre belonings arbeiten.
Was ist Ihre eigentliche Frage? Was hast du probiert? Und was stimmt nicht mit der Antwort, auf die Sie verlinken? So wie es aussieht, ist unklar, wonach Sie eigentlich fragen. – EJoshuaS