I already have borland c++
And it been 2 years I program with c language using borland compiler.
What I need now is to call a one of my programs in C with a batch command and execute it in DOS. Thanks for the reply but if you can explain more according the dos commands .
.
Sed (stream editor ), a c program that was originally written in C and complied for Unix and Linux. Sed has also been complied to work on windows.
I will demonstrate using sed in a batch file. A batch file has a .bat extention and will execute from the command prompt:
C:\>type patsed.bat
REM Use commandline argument: patsed.bat 113
@echo off
sed 's/111/%1/' pattie.txtC:\>type pattie.txt
<param name="license_ports">
<value>111</value>
</param>
OUTPUT:C:\> patsed.bat 113
C:\>REM Use commandline argument: patsed.bat 113
<param name="license_ports">
<value>113</value>
</param>
C:\>