Community
    • Login

    Send to COM PORT

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 3.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Marko CvetkoM Offline
      Marko Cvetko
      last edited by

      Is it posible to send the open file in N++ directl to RS232 COM PORT??

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Marko Cvetko
        last edited by

        @Marko-Cvetko

        in general yes but I assume you ask if this is a builtin feature, if so, no there isn’t
        such a function.
        What you normally do in such cases is to use the run menu with an external tool that can be
        executed as program directly or via cmd shell and providing the file as a parameter, like

        python "$(FULL_CURRENT_PATH)"
        

        or

        cmd /K python "$(FULL_CURRENT_PATH)"
        

        npp replaces automatically $(FULL_CURRENT_PATH) with the full path of the
        currently opened (and saved) document.

        In your case it COULD be that this way still works but it either needs to be wrapped
        in a bat file, when using run menu or copy and paste when using NppExec plugin

        mode COM8 BAUD=115200 PARITY=... DATA=...
        copy $(FULL_CURRENT_PATH) \\.\COM8
        

        Note, when using a batch file you cannot use $(FULL_CURRENT_PATH) inside the batch
        but something like $1 as far as I remember.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors