CodeSnip News
A repository for source code snippets, designed with Pascal in mind.
Brought to you by:
delphidabbler
Three new snippets have been added to the "System" category of the Code Snippets Database. They are all concerned with running DOS command in the command processor. The first, DOSCommand, simply executes a given DOS command like "COPY" or "DEL" and can optionally show a window or wait for the command to complete. The remaining two are overloaded and named DOSCommandRedirect. Both execute a DOS command in a hidden window and redirect its output. One version sends output to a TStream while the other sends output to a file. Thanks to Joe Donth for most of the work on these snippets.
link