Delphi 7: how to execute shell command and check the result?

前端 未结 6 412
一整个雨季
一整个雨季 2021-01-01 08:28

I\'m using Delphi 7 and can\'t predict the target version of Windows.

I need to create a database (probably MySql, but might be something else) and define some table

6条回答
  •  执笔经年
    2021-01-01 08:47

    I wonder why everybody who wants launch a new process tends to use ShellExecute instead, which is designed to open file in associated application?

    You want new process? Then use CreateProcess. End of story.

    CreateProcess allows you to wait for process, to get its exit code, to read its console output and many more.

提交回复
热议问题