Community
    • Login

    Session File is either corrupted or not valid

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 161 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.
    • Pim VeldP
      Pim Veld
      last edited by

      I have read the other posts with this title, but mine is different.

      I opened a command-prompt as administrator and tried to execute:
      notepad++ -openSession “D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html”
      Notepad++ was opened, but the file was not loaded and an error message was shown: “Session file is either corrupted or not valid”."
      Because I suspected that the filepath could be too long, I moved the file to C:\weekmenu.html and tried again:
      notepad++ -openSession “C:\weekmenu.html”
      Unfortunately with the same result.
      I removed the folder Notepad++ from %Appdata%, but this didn’t solve the problem.
      I also changed the extension from the file to weekmenu.txt, but also that didn’t solve it.
      Any ideas?

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

        @Pim-Veld

        I am betting that weekmenu.html is an HTML file that you want to open, not a session file which contains a list of files to open in Notepad++'s XML-based session-file format.

        If you want to edit an HTML file named D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html, then you just run notepad++.exe "D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html"

        The -openSession command-line option needs to point to a specific session file (which is in Notepad++'s specific session-file XML syntax) which points to one or more files to open (you can create those files through File > Save Session…). It is for opening multiple files at once from a previously-saved session.

        Learn more about Notepad++'s session feature in the “Sessions” section of the Online User Manual

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