I have a problem when running a dos application using shell, being that the application dos is very laborious as timing, the program times out. I tried to set the Timeout to -1, but in doing so the Dialog window is blocked while the application does not end the calculation.
I would like some suggestions, kind regards
my code:
Dim path as string
Dim bash as New Shell
path = "cmd.exe /c Appdos.exe"
bash.TimeOut = -1
bash.Mode = 0
App.DoEvents(500)
bash.Execute path
msgbox "done"
If instead imposed timeout 5000 the bash variable returns immediately timeout