Home Forums HTBasic Forum Error 172 Peripheral Error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9405
    Bert Weusten
    Participant

      Using HTBasic 2021
      After changing the printer at USB002
      our test program runs into an Error 172 at a line sending data to the printer at ICS26 the LPT1 port.

      It had been working before so the program code is OK.

      Wath setting are we missing?

      Thanks for your help

      #9407
      RalphW
      Participant

        Did you update the printer name mapping in the “net use” command to the new printer?

        net use lpt1: /delete
        net use lpt1: \<em>printserver\new-printer-name</em> /persistent:yes

        If you are running on Windows 11, make sure you are running HTBasic version 17 or later.

        #9408
        RalphW
        Participant
          net use lpt1: /delete
          net use lpt1: \printserver\new-printer-name /persistent:yes
          #9409
          Bert Weusten
          Participant

            Thank you Ralph for the fast reply.
            I followed you instructions and now everything works again.
            In Windows 11 (version 17) with the app “Terminal” I entered “net use”, this showed the line:
            Status Local Remote Network
            —————————————————————–
            Disconnected LPT1 \\mstucc1\HPLJM507 Microsoft Windows Network
            The command completed successfully.

            Then I entered your lines:
            net use lpt1: /delete
            net use lpt1: \\mstucc1\HPLJM507 /persistent:yes

            after this net use showed:
            Status Local Remote Network
            —————————————————————–
            OK LPT1 \\mstucc1\HPLJM507 Microsoft Windows Network
            The command completed successfully.

            “mstucc1” is our computer name and HPLJM507 is the shared printer name.
            In the printer setup you have to share the printer and give it a shared name.

            again thank you for the very fast reply.
            Regards
            Bert

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.
          Scroll to Top
          HTB icon

          Please Sign In