Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Command line

    Help wanted · · · – – – · · ·
    2
    4
    5103
    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 Chugh
      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
      • Ricardo
        Ricardo last edited by

        notepad++.exe -multiInst %1

        Abhishek Chugh 1 Reply Last reply Reply Quote 0
        • Abhishek Chugh
          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
          • Ricardo
            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
            Copyright © 2014 NodeBB Forums | Contributors