Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucla-cs.ARPA Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!ucla-cs!bert From: bert@ucla-cs.UUCP Newsgroups: net.lang.pascal Subject: Re: Device checking in Turbo Message-ID: <9488@ucla-cs.ARPA> Date: Fri, 28-Feb-86 13:42:19 EST Article-I.D.: ucla-cs.9488 Posted: Fri Feb 28 13:42:19 1986 Date-Received: Sat, 1-Mar-86 23:23:31 EST References: <198@dcc1.UUCP> Distribution: net Organization: UCLA Computer Science Department Lines: 21 > > Can anyone tell me how I can get version 2.0 of Turbo Pascal running under > MS/PC-DOS to check the status of a device? I would like to verify that the > printer is online, and that the drive is ready before doing I/O. I would also > like to have the program check to see what drive it is being run from. > I have looked thru Borland's reference manual, but if the info is there I'm > missing it. Any help would be greatly appreciated. > > Thanks in advance, > George > what you should be looking at is an MS-DOS reference manual. There are MS-DOS interrupts which return device status information, and you can perform any interrupt you want by setting up request parameters in a Turbo 'regpack' and calling the Turbo routine Intr. Results are passed back through the regpack.