How to wait for a shell process to finish before executing further code in VB6

前端 未结 7 886

I have a small VB6 app in which I use the Shell command to execute a program. I am storing the output of the program in a file. I am then reading this file and

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 09:53

    Great code. Just one tiny little problem: you must declare in the ExecCmd (after Dim start As STARTUPINFO):

    Dim ret as Long

    You will get an error when trying to compile in VB6 if you don't. But it works great :)

    Kind regards

提交回复
热议问题