Community
    • Login

    Is it possible to open two instances on startup?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 130 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.
    • W
      Wicke2d
      last edited by

      Currently notepad++ opens on startup, preserving position, size, tabs, and last open file. That’s very convenient. I have a dual desktop setup, so I would like to extend this convenience further by having an additional separate instance open on startup, with its own such preservations. Is this possible?
      I know it is possible to drag a tab out of the window to create a separate instance for editing that file. The feature I want would remove the need of having to manually keep doing that.

      Notepad++ v8.2.1 (32-bit)
      Build time : Jan 19 2022 - 18:38:49
      Path : C:\Program Files (x86)\Notepad++\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 10 Enterprise (64-bit)
      OS Version : 2009
      OS Build : 19045.4291
      Current ANSI codepage : 1252
      Plugins : none

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Wicke2d
        last edited by

        @Wicke2d ,

        At startup of windows? Yes, there are multiple ways.

        • You could create a .bat which runs two instances (ie, it calls c:\Program Files (x86)\Notepad++\notepad++.exe twice, at least one of which with the -multiInst option, or having the always-use-multiple-instances setting on in your Notepad++ config), and put that in your Startup folder (search the interwebs to see how to add something to the startup folder for your particular Windows version).

        • Or you could use Task Scheduler to create a task that runs two instances of Notepad++ (again, with the -multiInst or the preference equivalent mentioned above)

        I have a dual desktop setup

        I, however, don’t think that either of those solutions would be able to put a separate instance on a specific Desktop when you first boot.

        I want to say maybe you could do it with calling a different session from the command-line in each, but I don’t think that would be able to automatically run them at bootup. Maybe someone else has some ideas.

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