Hallo,
ich habe folgendes Problem
Ich will ein Programm schreiben, das an die cmd.exe beim Start Argumente übergibt:
Zuerst hab ich es versucht mit shell versucht, als das nicht funktionierte hab ich hier mal ein bisschen
gestöbert und es hieß shell sei veraltet.
Dann habe ich versucht mit process.start zu arbeiten
Ging auch nicht.
Dann hab ich hier noch diesen Code gefunden der aber auch nicht funktioniert:
Die MsgBoxen sollten mir klar machen wo's hängt, aber der Code lief einwandfrei, wie die anderen auch, ohne Fehlermeldung.
Allerdings hat sich nichts getan, tatsächlich nichts -.-
Kann mir jemand einen Rat geben
MfG BeNe
ich habe folgendes Problem
Ich will ein Programm schreiben, das an die cmd.exe beim Start Argumente übergibt:
Zuerst hab ich es versucht mit shell versucht, als das nicht funktionierte hab ich hier mal ein bisschen
gestöbert und es hieß shell sei veraltet.
Dann habe ich versucht mit process.start zu arbeiten
Ging auch nicht.
Dann hab ich hier noch diesen Code gefunden der aber auch nicht funktioniert:
VB.NET-Quellcode
- Dim ProzessStartCOPY As New ProcessStartInfo("cmd", "copy /b bild.png + test.zip bild2.png")
- MsgBox("1")
- ProzessStartCOPY.UseShellExecute = False
- MsgBox("2")
- ProzessStartCOPY.CreateNoWindow = True
- MsgBox("3")
- Dim prozessCOPY As New Process
- prozessCOPY.StartInfo = ProzessStartCOPY
- MsgBox("4")
- prozessCOPY.Start()
- MsgBox("5")
Die MsgBoxen sollten mir klar machen wo's hängt, aber der Code lief einwandfrei, wie die anderen auch, ohne Fehlermeldung.
Allerdings hat sich nichts getan, tatsächlich nichts -.-
Kann mir jemand einen Rat geben
MfG BeNe