Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Piping commands
Name: Valerie (by Garibaldi) Date: March 22, 2005 at 14:20:05 Pacific OS: MS-Dos 7.10 CPU/Ram: p4\1.6 256mb
Comment:
When I pipe commands the output from the one command is sent to the next so that output can be lost if the second one does not expect input.
e.g. if at the command prompt I enter DIR|DIR A: >PRN the output from the first DIR is sent to the second DIR which does not accept input and the output from the first DIR is therefore lost. The output from the second DIR is sent to the printer successfully.
Question: can anyone tell me where the output from the first DIR is stored?
Name: wizard-fred Date: March 22, 2005 at 15:35:03 Pacific
Reply:
Piped data is usually written to a temporary file. If a program is not designed to use the data then it is probably just deleted.
0
Response Number 2
Name: Valerie (by Garibaldi) Date: March 22, 2005 at 17:59:21 Pacific
Reply:
Thanks Wiz F.
That's not the answer I hoped for but I guess I cannot have everything I want.
0
Response Number 3
Name: wizard-fred Date: March 23, 2005 at 02:54:17 Pacific
Reply:
What were you trying to accomplish?
0
Response Number 4
Name: Valerie (by Garibaldi) Date: March 23, 2005 at 14:12:06 Pacific
Reply:
I was trying to set up some Function key (aka Softkey) to install & exit from QBasic 4.5 but found that any screen output from the QB program simply disappeared because the next command was 'CD\' or 'CD..' to return to the root directory.
Got any brilliant ideas? I can achieve this by using two Function keys, one to install QB then the other to return to the root dir but really just wanted to use one. I have written a .bat file to do the job and use just one Function key to call the .bat and that works fine but am still looking!!
Thanks
V...
0
Response Number 5
Name: wizard-fred Date: March 23, 2005 at 17:15:16 Pacific
Reply:
If the output is graphical, I think exitting the program changes the screen mode and changes the display memory.
Summary: does anyone have any idea why I can't pipe from one command to another? The '|' thing just doesn't work. I'm running win98 on a compaq presario laptop ...
Summary: I think the append command along with the pipe command, been a long time; append welcome.exe | win.ini or something along those lines. Sorry to be vague(sp?) on this but it might spark some memory ce...
Summary: This is quite easy to do using the "<" left arrow pipe command and should work in most versions of Dos. First use a basic text editor and create a text file that contains only the character "Y" and no...