Código: Selecionar todos
Error WScript.Shell/3 DISP_E_MEMBERNOTFOUND: RUN
Called from win32ole.prg->TOLEAUTO:RUN(0)
Called from FUNCAO44.PRG->MYRUN(172)
Called from FUNCAO44.PRG->FIMPUSB(141)
Código: Selecionar todos
// executa linha de comando substituindo o RUN
**************************
FUNCTION MYRUN( cComando )
**************************
local oShell, RET
oShell := CreateObject( "WScript.Shell" )
RET := oShell:Run( "%comspec% /c " + cComando, 0, .T. )
oShell := NIL
return iif( RET = 0, .T., .F. )

