Re: start batch file from within a Delphi application


Posted by Roland on April 26, 2000 at 13:41:36:

In Reply to: start batch file from within a Delphi application posted by Stefan Loeners on April 23, 2000 at 14:51:24:

You can launch a batch file like this :

x:='c:\My documents\Mine.bat';
if ShellExecute(0, nil, PChar(x), nil, nil, SW_SHOWDEFAULT) <= 32 then lblStatus.caption:='Can not launch';

You can launch any app or file-association like this.




Related Articles and Replies: