Re: [Freedos-user] piping .BATs (input and output)

2024-01-18 Thread Aitor SantamarĂ­a via Freedos-user
Hello! I am not quite sure how you intend to manage the stdin input inside the batch file, but I was wondering if you are looking for something like xargs (from Unix) and if a port of xargs to DOS would help (extra complexity for keeping global variables though). Aitor El lun, 20 nov 2023,

Re: [Freedos-user] piping .BATs (input and output)

2023-11-20 Thread Bret Johnson via Freedos-user
> What I'm wondering is if the following (piping into a .BAT) is > considered acceptable or "standard" for DOS. > > "prog1.exe | %COMSPEC% /c work.bat | %COMSPEC% /c fixups.bat > some.txt" > > Does that work like I'd expect? (Seems to ... barely.) Is it rare? > Is it buggy? Is there a better way?

[Freedos-user] piping .BATs (input and output)

2023-11-20 Thread Rugxulo via Freedos-user
"%COMSPEC% /c work.bat >file.txt" will succeed. Everyone knows that. What I'm wondering is if the following (piping into a .BAT) is considered acceptable or "standard" for DOS. "prog1.exe | %COMSPEC% /c work.bat | %COMSPEC% /c fixups.bat >some.txt" Does that work like I'd expect? (Seems to ...