Name: Valerie (by Garibaldi) Date: March 22, 2005 at 14:20:05 Pacific Subject: Piping commands 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?
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!!
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE