mutiboot pc: w10 & w8.1 don't share files open in npp



  • I have mutiboot pc, w10 & w8.1 (both x64) and npp 7.6.2 x64 on both.

    when I work in npp in one of those windows (8.1 or 10), and leave some files open in npp, and close npp and boot to other windows,
    when I open npp, these files that open in npp are not the same that I had in other windows.

    these files are essentially same on the hard disk, same disk, same partition, same folder, same filenames, and I frequently press Ctrl-shift-S to save all open files.

    When I reboot to the first windows os, the files that were there at last close of npp in that os, get open, so it is not that I didn’t save files or something.

    How can I make npp to open same set of files in different os?

    What am I missing?

    Thanks.



  • @V-S-Rawat

    with this configuration you have a similar to one of mine, and a good example that can best be done with the use of the portable version.

    if your drive E: is the same on both multiboots, you have to put a fresh notepad++ from here, and extract it to a folder in E:, like E:\Notepad++, or E:\Applications\Notepad++ for example
    (or e:\MyData\npp like given in a previous post as an example of yours. anything is fine as long as e:\foldername is the same in both windows os’es)

    from now on, only use this portable version instead of your installed version.
    (you can uninstall the installed version to avoid mixup if you use “open with notepad++” from the context menu.)

    all sessions will be stored in this portable versions folder, so if you now close notepad++ in windows 8.1 and reboot to windows 10, notepad++ will “remember” and open the same files you used in windows 8.1 a moment ago.



  • if your drive E: is the same on both multiboots,
    of course, yes.

    that is the whole point of having multiboot that a single partition has all my data, so that I can use it from both windows os.

    however, as I replied to you in the other post, I don’t want to install npp portable in e: as it will put all exe dll files of npp npp in e: and those will also backed up increasing time and effort.

    thanks.



  • @V-S-Rawat

    i would back them up as well.
    the whole portable notepad++ with all exe’s and files is only 26mb in size (plus your plugins)

    another advantage is that you have your np++ sessions and notepad++ backup files (previous version of your edited files) also backupped, so that if anything gets destroyed on your system, you can use the portable version from your backup right away and you don’t even lose any unsaved files, as they will be backupped too.

    plus it will backup all your personal customizations and you even would be able to run this backupped notepad++ directly from your backup drive, even on any other machine



  • Actually, apart from your suggestion, I think it is some bug in npp that it doesn’t open same hdd file on both os.

    All other software open the same file in both os.

    I am unable to understand why only npp is opening older files, from where, when I have changed the named file in other os.

    It could be some bug of autobackup plugin, I don’t know.

    Thanks.



  • @V-S-Rawat said:

    It could be some bug of autobackup plugin

    it isn’t a bug, but it is the cause and another reason why you have to use the portable version on e: in your scenario.

    autobackup has to be at the same location for both systems.
    if you for example edit a file in windows 8,1 but you kill notepad++ without saving, there will be an auto backup file in AppData\Roaming\Notepad++\backup.

    now if you boot windows 10 and edit this file, the changes you did in 8,1 will be lost.
    but there’s one thing worse:
    if you now edit and save this same file in win 10, then boot 8,1 and open notepad++, it will restore the last failsafe backup from your 8,1 AppData\Roaming\Notepad++\backup folder, because it still has the status of “crashed, use backup” and show this old version in notepad++

    this will be gone if you use the portable version at E:\Notepad++ because both os’es will have the same notepad++ internal backup and session folders.

    this portable solution at e: is also a huge fail safe advantage. you can edit without saving in say windows 8,1 and if a power loss happens, it will boot to win 10 automatically, and there you can immediately continue editing your UNSAVED data from 8,1 that you would have lost elsewise.



  • if you now edit and save this same file in win 10, then boot 8,1 and open notepad++, it will restore the last failsafe backup from your 8,1 AppData\Roaming\Notepad++\backup folder, because it still has the status of “crashed, use backup” and show this old version in notepad++

    but in several cases it gives a message that “the files has been changed outside of npp, do you want to load the changed file?” or something to that tune.

    I don’t see any message.

    thanks.



  • I report that the above problem has resolved by itself.

    yesterday, I logged in to w10 after some days, and in the mean time I was working on w8.1 and changing files in npp in it.

    when I started npp in w10, it duly gave me prompt me for each of my 9 files “the files has been changed outside of npp, do you want to load the changed file?” or something to that tune.

    so, now npp is using same hdd files in w10 as well as w8.1

    I don’t know where the problem arose from and how it resolved.


Log in to reply