How to recover a Notepad++ lost session












0














I had my Notepad++ with at least 50 opened files on it, organizing all my work.



I left the computer as always hibernating overnight and surprise, this morning all was gone.



An error message popped up when maximizing Notepad++, something along a file not being able to be opened.



I accepted the error and Notepad++ had no files on it.



After rebooting nothing changed, and in the backups folder I only found standalone old dirty files that I worked on a long time ago...



Any thoughts on how to recover my precious working session?



Thanks,










share|improve this question
























  • I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
    – Peanuts
    Jul 27 '18 at 16:41










  • Possible duplicate of Is there any way to recover unsaved notepad++ docs?
    – JonathanDavidArndt
    Aug 21 '18 at 13:02
















0














I had my Notepad++ with at least 50 opened files on it, organizing all my work.



I left the computer as always hibernating overnight and surprise, this morning all was gone.



An error message popped up when maximizing Notepad++, something along a file not being able to be opened.



I accepted the error and Notepad++ had no files on it.



After rebooting nothing changed, and in the backups folder I only found standalone old dirty files that I worked on a long time ago...



Any thoughts on how to recover my precious working session?



Thanks,










share|improve this question
























  • I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
    – Peanuts
    Jul 27 '18 at 16:41










  • Possible duplicate of Is there any way to recover unsaved notepad++ docs?
    – JonathanDavidArndt
    Aug 21 '18 at 13:02














0












0








0







I had my Notepad++ with at least 50 opened files on it, organizing all my work.



I left the computer as always hibernating overnight and surprise, this morning all was gone.



An error message popped up when maximizing Notepad++, something along a file not being able to be opened.



I accepted the error and Notepad++ had no files on it.



After rebooting nothing changed, and in the backups folder I only found standalone old dirty files that I worked on a long time ago...



Any thoughts on how to recover my precious working session?



Thanks,










share|improve this question















I had my Notepad++ with at least 50 opened files on it, organizing all my work.



I left the computer as always hibernating overnight and surprise, this morning all was gone.



An error message popped up when maximizing Notepad++, something along a file not being able to be opened.



I accepted the error and Notepad++ had no files on it.



After rebooting nothing changed, and in the backups folder I only found standalone old dirty files that I worked on a long time ago...



Any thoughts on how to recover my precious working session?



Thanks,







notepad++ session session-restore






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 27 '18 at 15:47

























asked Jul 27 '18 at 15:42









Peanuts

1054




1054












  • I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
    – Peanuts
    Jul 27 '18 at 16:41










  • Possible duplicate of Is there any way to recover unsaved notepad++ docs?
    – JonathanDavidArndt
    Aug 21 '18 at 13:02


















  • I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
    – Peanuts
    Jul 27 '18 at 16:41










  • Possible duplicate of Is there any way to recover unsaved notepad++ docs?
    – JonathanDavidArndt
    Aug 21 '18 at 13:02
















I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
– Peanuts
Jul 27 '18 at 16:41




I searched for the session.xml file on C:Usersuser.user-PCAppDataRoamingNotepad++ but it got "reset" and isn't showing all the old opened tabs. I went to [right click] > Preferences > Old Versions but there's no old version available. On Windows Temp folder there're no "session" files, on "n++" or "npp" or "notepad" files :(
– Peanuts
Jul 27 '18 at 16:41












Possible duplicate of Is there any way to recover unsaved notepad++ docs?
– JonathanDavidArndt
Aug 21 '18 at 13:02




Possible duplicate of Is there any way to recover unsaved notepad++ docs?
– JonathanDavidArndt
Aug 21 '18 at 13:02










2 Answers
2






active

oldest

votes


















1














You cannot, but you can secure against happening this again.



This is possible if you have your cloud path set in Preferences:



enter image description here



After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.



This also works for all other setting files, see the link above for details.





Also be sure that you updated to at least Notepad++ 7.5.9.



In its list of fixed bugs, there is





  1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.




So yes, this has been addressed in October 2018.






share|improve this answer























  • I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
    – Joe Pineda
    Nov 22 '18 at 16:18










  • Thanks for the tip!
    – Peanuts
    Nov 22 '18 at 19:59










  • @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
    – miroxlav
    Nov 23 '18 at 9:00










  • @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
    – Joe Pineda
    Nov 26 '18 at 23:46



















0














Thanks to Joe Pineda for his comment on the backup folder. After losing my crashed session, I saw that in this folder there were many files - both unsaved notes and opened existing files. They were of non-zero size in bytes but neither the ordinary Notepad, nor Notepad++ itself displayed anything. However, you can read them in Linux.



Remember to make a copy of your backup directory in case something unexpectedly goes wrong.



I recovered my unsaved notes by making a list of the file names and removing the "new" from the filename (Windows just loves spaces in file names).



for note in $(ls new*); do echo $note | grep -v new; done


This list of names can be saved in a variable and then the files can be copied to e.g .txt:



filenames=$(for note in $(ls new*); do echo $note | grep -v new; done) 
for f in $filenames ; do cp 'new '$f 'new '$f.txt; done





share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1343850%2fhow-to-recover-a-notepad-lost-session%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    You cannot, but you can secure against happening this again.



    This is possible if you have your cloud path set in Preferences:



    enter image description here



    After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.



    This also works for all other setting files, see the link above for details.





    Also be sure that you updated to at least Notepad++ 7.5.9.



    In its list of fixed bugs, there is





    1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.




    So yes, this has been addressed in October 2018.






    share|improve this answer























    • I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
      – Joe Pineda
      Nov 22 '18 at 16:18










    • Thanks for the tip!
      – Peanuts
      Nov 22 '18 at 19:59










    • @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
      – miroxlav
      Nov 23 '18 at 9:00










    • @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
      – Joe Pineda
      Nov 26 '18 at 23:46
















    1














    You cannot, but you can secure against happening this again.



    This is possible if you have your cloud path set in Preferences:



    enter image description here



    After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.



    This also works for all other setting files, see the link above for details.





    Also be sure that you updated to at least Notepad++ 7.5.9.



    In its list of fixed bugs, there is





    1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.




    So yes, this has been addressed in October 2018.






    share|improve this answer























    • I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
      – Joe Pineda
      Nov 22 '18 at 16:18










    • Thanks for the tip!
      – Peanuts
      Nov 22 '18 at 19:59










    • @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
      – miroxlav
      Nov 23 '18 at 9:00










    • @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
      – Joe Pineda
      Nov 26 '18 at 23:46














    1












    1








    1






    You cannot, but you can secure against happening this again.



    This is possible if you have your cloud path set in Preferences:



    enter image description here



    After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.



    This also works for all other setting files, see the link above for details.





    Also be sure that you updated to at least Notepad++ 7.5.9.



    In its list of fixed bugs, there is





    1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.




    So yes, this has been addressed in October 2018.






    share|improve this answer














    You cannot, but you can secure against happening this again.



    This is possible if you have your cloud path set in Preferences:



    enter image description here



    After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.



    This also works for all other setting files, see the link above for details.





    Also be sure that you updated to at least Notepad++ 7.5.9.



    In its list of fixed bugs, there is





    1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.




    So yes, this has been addressed in October 2018.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 18 '18 at 22:49

























    answered Nov 18 '18 at 22:23









    miroxlav

    7,28842466




    7,28842466












    • I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
      – Joe Pineda
      Nov 22 '18 at 16:18










    • Thanks for the tip!
      – Peanuts
      Nov 22 '18 at 19:59










    • @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
      – miroxlav
      Nov 23 '18 at 9:00










    • @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
      – Joe Pineda
      Nov 26 '18 at 23:46


















    • I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
      – Joe Pineda
      Nov 22 '18 at 16:18










    • Thanks for the tip!
      – Peanuts
      Nov 22 '18 at 19:59










    • @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
      – miroxlav
      Nov 23 '18 at 9:00










    • @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
      – Joe Pineda
      Nov 26 '18 at 23:46
















    I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
    – Joe Pineda
    Nov 22 '18 at 16:18




    I have Notepad++ 7.5.9 and this just happened to me: my computer lost power (UPS failed!) and when I opened Notepad++ again I see a clean session. In the "backup" folder I see copies of the unnamed files, but I see no way to restore all the named files I was working on
    – Joe Pineda
    Nov 22 '18 at 16:18












    Thanks for the tip!
    – Peanuts
    Nov 22 '18 at 19:59




    Thanks for the tip!
    – Peanuts
    Nov 22 '18 at 19:59












    @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
    – miroxlav
    Nov 23 '18 at 9:00




    @JoePineda – hm, thanks for sharing. So maybe the cloud backup is really the next option to try? Even if the backup may be delayed, it can be still better to recover somewhat older tab set then start with blank one.
    – miroxlav
    Nov 23 '18 at 9:00












    @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
    – Joe Pineda
    Nov 26 '18 at 23:46




    @miroxlav I ended up installing "recuva" as suggested in another answer to the same data loss by Notepad++ - it worked like a charm, recovering all the files I was working at the moment, and even the session file (which I manually substituted). I only needed to point recuva to a shared folder on another network machine to leave the files at. I was dissappointed by Notepad++, though, this destroying of user info is totally unacceptable - they should be using SQLite or something like that to have ACID changes in the files they're touching, database-style
    – Joe Pineda
    Nov 26 '18 at 23:46













    0














    Thanks to Joe Pineda for his comment on the backup folder. After losing my crashed session, I saw that in this folder there were many files - both unsaved notes and opened existing files. They were of non-zero size in bytes but neither the ordinary Notepad, nor Notepad++ itself displayed anything. However, you can read them in Linux.



    Remember to make a copy of your backup directory in case something unexpectedly goes wrong.



    I recovered my unsaved notes by making a list of the file names and removing the "new" from the filename (Windows just loves spaces in file names).



    for note in $(ls new*); do echo $note | grep -v new; done


    This list of names can be saved in a variable and then the files can be copied to e.g .txt:



    filenames=$(for note in $(ls new*); do echo $note | grep -v new; done) 
    for f in $filenames ; do cp 'new '$f 'new '$f.txt; done





    share|improve this answer


























      0














      Thanks to Joe Pineda for his comment on the backup folder. After losing my crashed session, I saw that in this folder there were many files - both unsaved notes and opened existing files. They were of non-zero size in bytes but neither the ordinary Notepad, nor Notepad++ itself displayed anything. However, you can read them in Linux.



      Remember to make a copy of your backup directory in case something unexpectedly goes wrong.



      I recovered my unsaved notes by making a list of the file names and removing the "new" from the filename (Windows just loves spaces in file names).



      for note in $(ls new*); do echo $note | grep -v new; done


      This list of names can be saved in a variable and then the files can be copied to e.g .txt:



      filenames=$(for note in $(ls new*); do echo $note | grep -v new; done) 
      for f in $filenames ; do cp 'new '$f 'new '$f.txt; done





      share|improve this answer
























        0












        0








        0






        Thanks to Joe Pineda for his comment on the backup folder. After losing my crashed session, I saw that in this folder there were many files - both unsaved notes and opened existing files. They were of non-zero size in bytes but neither the ordinary Notepad, nor Notepad++ itself displayed anything. However, you can read them in Linux.



        Remember to make a copy of your backup directory in case something unexpectedly goes wrong.



        I recovered my unsaved notes by making a list of the file names and removing the "new" from the filename (Windows just loves spaces in file names).



        for note in $(ls new*); do echo $note | grep -v new; done


        This list of names can be saved in a variable and then the files can be copied to e.g .txt:



        filenames=$(for note in $(ls new*); do echo $note | grep -v new; done) 
        for f in $filenames ; do cp 'new '$f 'new '$f.txt; done





        share|improve this answer












        Thanks to Joe Pineda for his comment on the backup folder. After losing my crashed session, I saw that in this folder there were many files - both unsaved notes and opened existing files. They were of non-zero size in bytes but neither the ordinary Notepad, nor Notepad++ itself displayed anything. However, you can read them in Linux.



        Remember to make a copy of your backup directory in case something unexpectedly goes wrong.



        I recovered my unsaved notes by making a list of the file names and removing the "new" from the filename (Windows just loves spaces in file names).



        for note in $(ls new*); do echo $note | grep -v new; done


        This list of names can be saved in a variable and then the files can be copied to e.g .txt:



        filenames=$(for note in $(ls new*); do echo $note | grep -v new; done) 
        for f in $filenames ; do cp 'new '$f 'new '$f.txt; done






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 9 '18 at 11:53









        Suzanka

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1343850%2fhow-to-recover-a-notepad-lost-session%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa