executar um exe e ficar aguardando el eterminar
Enviado: 11 Jul 2016 12:20
BOM dia
como executar um exe e ficar aguardando ele TERMINAR para poder dar continuidade ?
para executar um mexe uso o myrun + ele Não fica aguardando o retorno.
alguém sabe como fazer ?
JA eliminei o start do cComando := "start " + cComando + não resolveu
ob PAiva
xrun = [\dbdc\dosprint /PDF ] + xfile
MyRun(xrun)
function MYRUN( cComando )
local oShell, RET
cComando := "start " + cComando
oShell := CreateObject( "WScript.Shell" )
RET := oShell:Run( "%comspec% /c " + cComando , 0, .T. )
oShell := NIL
return iif( RET = 0, .T., .F. )
como executar um exe e ficar aguardando ele TERMINAR para poder dar continuidade ?
para executar um mexe uso o myrun + ele Não fica aguardando o retorno.
alguém sabe como fazer ?
JA eliminei o start do cComando := "start " + cComando + não resolveu
ob PAiva
xrun = [\dbdc\dosprint /PDF ] + xfile
MyRun(xrun)
function MYRUN( cComando )
local oShell, RET
cComando := "start " + cComando
oShell := CreateObject( "WScript.Shell" )
RET := oShell:Run( "%comspec% /c " + cComando , 0, .T. )
oShell := NIL
return iif( RET = 0, .T., .F. )