Community
    • Login

    Command line

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

        notepad++.exe -multiInst %1

        Abhishek ChughA 1 Reply Last reply Reply Quote 0
        • Abhishek ChughA Offline
          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 Offline
            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

            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