NET USE COM1:

Hi everybody!

I want send my ComWrite to the share printer but Windows said me a error 66.

NET USE COM1: \\shareprinter

error 66...

But Citect can't ComWrite in the LPT1: and ascii device with lpt1: or lpt1.dos doesn't work.

Have your an idea?

Thank...and yes i can't speack english :)

  • Hi Kévin,

    I'd recommend getting in contact with Citect Support to work through this. It can get complex.

    I've not seen error 66 listed in Citect documentation, so it could be coming from the OS level? This is all I could find from Windows: ERROR_BAD_DEV_TYPE
    66 (0x42)
    The network resource type is not correct.

    You mention COM1, but then say LPT1. Can you check what is physically available on the OS/Hardware?

    It might also be a good idea to get a Terminal emulator to see what packets Citect is sending on the port.

    Wishing you the best of luck getting this working.

    Kind regards
    Olivier
  • Hello,

    Thank you for your comeback,

    To solve my problem I finally used the "device" function. I programmed a device that points to the printer \\computer\printer
    and with the function devwrite () I write on my device at the moment I make devclose ()

    The raw message that I write so my serial port remains unchanged

    My function determines if I need to write to a serial port or a network printer

    Thank,

    Kévin F