Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run batch file from Delphi IDE

Does anybody know, is there any way (default or third-party) to start batch file which is opened in Delphi IDE editor, by keypress or button?

I mean simply press, say, F9, and get cmd.exe window with my batch file, from editor, runnning in this window.

In some older Delphi version, might be Delphi 5, batch files could be created as projects, so there it was really F9. However, in Delphi XE I see no such project "type".

like image 805
Serhii Kheilyk Avatar asked Sep 30 '12 10:09

Serhii Kheilyk


1 Answers

You could add CMD.EXE (or as you yourself mentioned, $(ComSpec)) in the tools menu, with /c$EDNAME as the parameter. Also, you can tell the IDE to save your file before running the external tool with $SAVE macro

like image 110
iMan Biglari Avatar answered Oct 13 '22 05:10

iMan Biglari