Computing.Net > Forums > Disk Operating System > Piping commands

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

Reply to Message Icon

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?

Thanks



Sponsored Link
Ads by Google

Response Number 1
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.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Piping commands

pipe command not working www.computing.net/answers/dos/pipe-command-not-working/6139.html

Inserting text into files using some DOS www.computing.net/answers/dos/inserting-text-into-files-using-some-dos/7134.html

Delete files without prompt www.computing.net/answers/dos/delete-files-without-prompt/11209.html