assuming the program doesn't have a method already like taking a parameter with the input or input file, then it sounds like a programming problem of automatically sending keys to a program. VBscript has SendKeys. VC++ no doubt has that or equivalent. otherwise it's autohotkeys/autoit. But look up any example of sendkeys in vbscript and you'll see an example.
Try the copy con
command manually to see how it works.
copy con c:\blah\a.a
then you enter the text of the file, and hit Ctrl-Z to write it.
So that involved entering things on the command line.
And try this vbscript which does that automatically
for command line. call this whatever.vbs
dim a
a="copy con c:\blah\file.123"
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.SendKeys a
WshShell.SendKeys "dsdsfd{ENTER}sdfds{ENTER}sleep for 2000ms and will enter more{ENTER}"
Wscript.Sleep 2000
WshShell.SendKeys "ewrwrewrewwe{ENTER}"
WshShell.SendKeys "sending ctrl-z and enter {ENTER}"
Wscript.Sleep 2000
WshShell.SendKeys "^Z{ENTER}"
C:\>echo sdf | pause
orecho y | del a.a
but send data to a program including multiple return keys, nope.If there was a command that does it(somebody, maybe pc magazine,wrote one unce for MS-DOS ) that can send keys, but I don't know of such a third party app.QBASIC and layer, VBscript,and now,powershell.They exist because of limitations of the batch language.vbscript is native and That vbscript code will run from command line if u have cscript.exe Why do you have the 'only batch' limitation?