Visual Basic - Ayuda sobre Shell (....

Life is soft - evento anual de software empresarial
 
Vista:

Ayuda sobre Shell (....

Publicado por Diego (2 intervenciones) el 22/05/2003 21:22:21
Estoy llamando una aplicacion DOS con shell, la cual crea un archivo, como detengo el programa, hasta que se ejecute completamente el codigo DOS, de antemano muchas gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Ayuda sobre Shell (....

Publicado por Jose Miguel (3 intervenciones) el 23/05/2003 14:23:05
Has probado utilizando CreateProcess

Ej :
Dim lstr_proc As PROCESS_INFORMATION
Dim lstr_start As STARTUPINFO
Dim ll_ret As Long

' Initialize the STARTUPINFO structure:
lstr_start.cb = Len(lstr_start)
' Start the shelled application:
ll_ret = CreateProcessA(0&, as_cmdline, 0&, 0&, 1&, _
NORMAL_PRIORITY_CLASS, 0&, 0&, lstr_start, lstr_proc)
' Wait for the shelled application to finish:
ll_ret = WaitForSingleObject(lstr_proc.hProcess, INFINITE)
ll_ret = CloseHandle(lstr_proc.hProcess)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Ayuda sobre Shell (....

Publicado por Diego (2 intervenciones) el 23/05/2003 23:58:46
Que pena Jose Miguel, no entiendo el codigo, y me saca error en la primera linea AS PROCESS_INFORMATION, podrias ser mas explicito,
Gracias.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar