Does anybody know of a good way to find the Printer.DeviceName of a captured printer port such as LPT2 or LPT3. This needs to work both on WinNT and Win95.

I've tried the following code and it doesn't work on all platforms.


for i = 0 to me.Printer.NDevices - 1
me.Printer.DeviceName = me.Printer.Devices(i)
If me.Printer.Port = "LPT2:" then Exit for
next i




Kevin Wood
Denver, CO