Subject: | |
From: | |
Reply To: | |
Date: | Tue, 11 Feb 1997 19:14:24 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I don't have an intrinsics manual handy, but if I remember correctly, the
FFILEINFO intrinsic has options for returning the device TYPE and SUBTYPE of
a file you have opened. I seem to remember using such a method to make sure
I was opening a terminal device (which I remember as having TYPE=16).
I'm guessing that you could set up a file equation specifying the device in
question, then FOPEN the file (or even specify the device name in FOPEN),
then call FFILEINFO to determine the device TYPE and SUBTYPE. Printers
should have their own TYPE and so should be easy to identify. To find out
the device type, run a test program that specifies LP and then displays the
TYPE and SUBTYPE.
The drawback to using such an approach would be that if you have opened a
file in a spooled print class, you now have an open spoolfile.
John
--------------------------------------------------------------
John Korb email: [log in to unmask]
Innovative Software Solutions, Inc.
The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.
|
|
|