• Login
Community
  • Login

Setting Notepad++ as the default PRINT for .bat files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 185 Views
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.
  • S
    Soapboy
    last edited by Oct 11, 2024, 11:12 AM

    As the title suggest. I want to be able to right click then push PRINT on the .bat file through Notepad++. I already made it a default EDIT, but when I use the same RegEdit trick with PRINT, it doesn’t work

    "C:\Program Files\Notepad++\notepad++.exe" /p "%1"
    

    Simply returns

    "C:\p" does not exist. Create it?
    
    P 1 Reply Last reply Oct 11, 2024, 1:02 PM Reply Quote 0
    • P
      PeterJones @Soapboy
      last edited by Oct 11, 2024, 1:02 PM

      @Soapboy ,

      That’s because /p is not Notepad++'s command-line option for printing (or for anything else, which is why it tries to open a file called /p). The ?-menu’s Command Line Arguments… dialog will show all the command-line options, or you can look in the Online User Manual’s Command Line Arguments page. Specifically, -quickPrint is the way to be able to make Notepad++ print the document from the command-line

      1 Reply Last reply Reply Quote 2
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors