[VB] In Form Kommandozeile aufrufen

UnBreakable

Lt. Junior Grade
Registriert
Sep. 2005
Beiträge
477
Hallo,

ich hätte mal ne Frage:

Ich habe in Visualbasic.net 2005 ein Programm mit Grafischer Oberfläche Buttons usw.
Ich will da jetzt ein Programm aufrufen das keine Grafische Oberfläche hat sondern nur die Kommandozeile.

Kann ich das bzw. wie kann ich das Aufrufen mit einem Button oder ähnlichem?

Vielen Dank im voraus.
 
http://support.microsoft.com/kb/238245/de

Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
 
Danke für deine Antwort.
Ich will aber kein "externes" Programm starten, sondern eine andere Klasse in meinem Projekt.
Welches aber wie gesagt keine Form ist sondern eben eine Konsolenanwendung.
 
Private Declare Function WriteConsole Lib "kernel32" _
Alias "WriteConsoleA" _
(ByVal hConsoleOutput As Long, _
ByVal lpBuffer As String, _
ByVal nNumberOfCharsToWrite As Long, _
lpNumberOfCharsWritten As Long, _
lpReserved As Any) As Long

Das sollte helfen...
 
Zurück
Oben