PDISK FILENAME (AREV Specific)
At 23 JUL 2002 07:15:53PM ps wing wrote:
Hi,
Does anyone know a way to return the actual filename a PDISK is writing to? ie. IF @PDISK.ON THEN FILENAME=……..
Phil.
At 23 JUL 2002 08:54PM Richard Hunt wrote:
Well… I do know that PDISK calls an assembly SYSOBJ $SETPTR routine. And that this routine redirects the printer port by using the INT 21h and the following calls.
45h Duplicate handle (redirect printer to dos file)
3Eh Close handle (dos file)
3Dh Open handle (dos file)
3Ch Create handle (dos file)
I would think the easy way out would be to save the redirect path, when your program executes the PDISK, in a common variable and then you would be able to retrieve it at any time.
At 23 JUL 2002 09:09PM ps wing wrote:
Thanks for the prompt reply
I was hoping it was already in a system variable or common somewhere, but I guess you are right I will have to store the filename myself for use elsewhere.
Phil.
At 23 JUL 2002 09:12PM dsig@teleport.com wrote:
Without being an BIT guy I would have to guess the easiest way would be to put a wrapper around PDISK which would execute the pdisk and update either a system variable OR a 'control' record somewhere.
dsig@teleport.com onmouseover=window.status=the new revelation technology .. a refreshing change;return(true)"
David Tod Sigafoos ~ SigSolutions
Phone: 503-639-4240
At 24 JUL 2002 04:13PM ps wing wrote:
Yep, this is what I did, wrote a shell around PDISK to capture the filename - will have to do - thanks.
At 31 JUL 2002 01:31PM David Cooksley wrote:
Another option is to create your own filename and pass that to PDISK (as PDISK filename).