Community
    • Login

    Command line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 5.4k 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.
    • Abhishek ChughA
      Abhishek Chugh
      last edited by Abhishek Chugh

      How to open two files in notepad++ in different views using command line?

      For example :
      Open C:\temp\input.txt & C:\temp\output.txt using a command line and move the output file to OTHER View

      Basically I am looking for command line argument to use the option ( MOVE to OTHER VIEW)

      Here is better description of what i am looking :
      https://questionsnotepad.wordpress.com/question/

      1 Reply Last reply Reply Quote 0
      • RicardoR
        Ricardo
        last edited by

        notepad++.exe -multiInst %1

        Abhishek ChughA 1 Reply Last reply Reply Quote 0
        • Abhishek ChughA
          Abhishek Chugh @Ricardo
          last edited by

          @Ricardo

          I am not looking for launching Multiple Instances of Notepad++

          I am looking for opening Two Files and Move one File to Other View.
          Here is better description of what i am looking :
          https://questionsnotepad.wordpress.com/question/

          1 Reply Last reply Reply Quote 0
          • RicardoR
            Ricardo
            last edited by Ricardo

            Sorry for the misunderstanding…
            I could not found a command-line for that, but you can load Session files…
            A session file is a XML file with this structure:

            <NotepadPlus>
                <Session activeView="1">
                    <mainView activeIndex="0">
                        <File firstVisibleLine="0" xOffset="0" scrollWidth="288" startPos="0" endPos="0" selMode="0" lang="XML" encoding="-1" filename="C:\file1.xml" backupFilePath="" originalFileLastModifTimestamp="1438295994" />
                    </mainView>
                    <subView activeIndex="0">
                        <File firstVisibleLine="0" xOffset="0" scrollWidth="288" startPos="0" endPos="0" selMode="0" lang="XML" encoding="-1" filename="C:\file2.xml" backupFilePath="" originalFileLastModifTimestamp="1438295994" />
                    </subView>
                </Session>
            </NotepadPlus>
            

            Files in “other view” (at right) are inside <subView> tag.
            You can open it with a command-line such as this:
            notepad++.exe -openSession "MySession.xml"

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