I have an app that runs a PowerShell cmd,
I create a variable containing the execution string and
run it with
hb_processRun(cCmd)
it works fine, but it opens the PowerShell window and closes,
I tried several ways to hide the PowerShell window but
it doesn't work.
ChatGPT says to replace HB_PROCESSRUN() with
HB_WINEXEC() or WNEXEC(), but I couldn't find that,
does anyone have a tip for this?
Tenho um app que executa um cmp powershell,
eu crio uma variavel contendo a string de execucao e
executo com
hb_processRun( cCmd )
funciona bem, porem abre a janela do powershell e fecha,
eu tentei de varias formas ocultar a janela do powershell mas
nao funciona.
O ChatGPD diz para trocar HB_PROCESSRUN() por
HB_WINEXEC() OU WNEXEC() , mas nao encontrei isso,
alguem tem uma dica para isso ?