|
|
Redirecting Output...
When you use Function 46h of the DOS function request interrupt,
to force duplicating a handle for a open file to handle 1
to redirect Stdout, how do you restore Stdout so that output will be
sent to the console
as normal, while the program is running?
|
|
0
|
|
|
|
Reply
|
wolf3y3
|
11/28/2008 5:01:10 PM |
|
wolf3y3 <spamtrap@crayne.org> writes:
>When you use Function 46h of the DOS function request interrupt,
>to force duplicating a handle for a open file to handle 1
>to redirect Stdout, how do you restore Stdout so that output will be
>sent to the console
>as normal, while the program is running?
I thought that open file, redirect output, write to file,
close file, open CON device, redirect output, and write
to output would work, and it does. I coded that up to
test it.
Checking "Undocumented DOS" 2nd ed., shows
they did it completely differently. They muck about
with the file table in the PSP. Oh well.
Steve N.
|
|
0
|
|
|
|
Reply
|
Steve
|
11/29/2008 1:54:16 PM
|
|
Sorry, figured it out.
Made duplicate of Stdin, and restored the console using function 46h,
making a forced duplicate of the Stdin backup back to handle 0.
Thanks...
|
|
0
|
|
|
|
Reply
|
wolf3y3
|
11/30/2008 3:29:33 AM
|
|
|
2 Replies
122 Views
(page loaded in 0.035 seconds)
Similiar Articles: Redirecting Output to GUI - comp.soft-sys.matlabIs it possible to redirect the output that normally goes to the command window to an edit box inside a GUI? Or at least capture/duplicated what's writ... redirecting output from telnet - comp.unix.solarisIs there a way to redirect the input and output from a telnet connection so you can interactivly use it. right now i enter in the commands I need to ... Redirect AT command Output to a File - comp.sys.hp.hpuxHi All, When using the AT command I find all output goes to the mail system. Is there any way I can redirect the output of all scripts run via the AT... FTP: how to re-direct output - comp.unix.solarisHi, Use FTp to connect a machine, now I want to store the file list to a file, so I do this: ftp> ls > files_list Then FTP asks me "output to ... redirect output to a file named by variable - comp.lang.awk ...Hi, I'm trying to use a variable to determine the name of a file to write output to. So, wishing something like this cartoon would actually work:... How do I redirect server's standard output to socket? - comp.unix ...I made two process. One is use for a socket server in remote host, the other is client. Socket server includes a big library and will be run in the ba... Redirect command output to a variable - comp.unix.programmer ...Hi all, Is it possible to redirect the output of a command directly to a variable without using any intermediate file. For example how to do the f... Redirect stderr/stdout to a file using SetStdHandle - comp.os.ms ...Hi all, I have the following code snippet, that tries to redirect a program's standard output/error to a file. HANDLE fHandle; fHandle = Cre... Windows file redirection and pipe operations - comp.lang.idl ...Microsoft Windows XP - Using command redirection operators If you redirect output to a file and you specify an existing file name, Cmd.exe opens the file ... Capturing output of os.system to a string - comp.lang.python ...How do I capture output to a string? For example, the output of os.system('whoami'). I guess I need to redirect stdout, but I'm a total beginner, ... Batch files - How To ... Display and Redirect OutputBatch How To ... Display & Redirect Output. On this page I'll try to explain how redirection works. To illustrate my story there are some examples you can try for ... Redirection (computing) - Wikipedia, the free encyclopediaThis type of construction is used very commonly in shell scripts and batch files. Redirect to multiple outputs. The standard command tee can redirect output from a command to ... 7/24/2012 9:31:41 AM
|
|
|
|
|
|
|
|
|