Sep 29, 2017 05:55 PM
(This post was last modified: Sep 29, 2017 06:13 PM by Xogg.)
DosCommand
Overview:
DOSCommand component let you execute a dos program (exe, com or batch file) and catch the ouput in order to put it in a memo or in a listbox, ... You can also send inputs. The cool thing of this component is that you do not need to wait the end of the program to get back the output. it comes line by line.
Why Get DosCommand?
ITS SO EASY TO USE, It makes working with batch 100000x easier and faster! Also allows to change current directory from property's and has easy to use events!
Helpful Snippets:
Set and execute a command
Set the current directory
Place output in memo
Images!
![[Image: image.png]](https://image.ibb.co/j3dTwG/image.png)
Download The Component And Demos Here!
Encryption Key: !5hcDHYx_dx-dbqwhBeSTfJRsOWd1HpdP0IG9bsTjHAc
Overview:
DOSCommand component let you execute a dos program (exe, com or batch file) and catch the ouput in order to put it in a memo or in a listbox, ... You can also send inputs. The cool thing of this component is that you do not need to wait the end of the program to get back the output. it comes line by line.
Why Get DosCommand?
ITS SO EASY TO USE, It makes working with batch 100000x easier and faster! Also allows to change current directory from property's and has easy to use events!
Helpful Snippets:
Set and execute a command
Code
DosCommand1.CommandLine := Edit1.Text;
DosCommand1.Execute;Set the current directory
Code
DosCommad1.CurrentDir := GetCurrentDir;Place output in memo
Code
//this code needs to be in the "NewLine" event of the DosCommand
Memo1.Lines.Add(ANewLine);Images!
![[Image: image.png]](https://image.ibb.co/j3dTwG/image.png)
Download The Component And Demos Here!
Encryption Key: !5hcDHYx_dx-dbqwhBeSTfJRsOWd1HpdP0IG9bsTjHAc


![[Image: F2G97kn.png]](https://i.imgur.com/F2G97kn.png)