How to restore opened folders on crash or power failure?

Page 1 of 2 12 LastLast

  1. Posts : 3
    Windows 7 Ultimate x64
       #1

    How to restore opened folders on crash or power failure?


    Hi everyone, i usually work with several opened folders, and Windows 7 has an option to restore them after a Shut Down or Reboot, but it seems that it doesnt work when a power failure or BSOD happens, because after powering on again, the folders doesn't reopen.

    I would like to know if there is a way editing the registry or a software that may save the opened folders at the moment they are opened or changed, and not only at the moment of shut down or reboot.

    Something like "Session Manager" plugin in Firefox, that it "remembers" the opened tabs at every change you make, so if Firefox crash or a power failure or a BSOD happen, then it restore the session to it last state.

    Thanks in advance!
    Browny
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    This may be useful for automatically positioning and sizing windows:
    https://sourceforge.net/projects/winsize2/

    I wrote a freeware called fold that opens multiple folders from a list in an .fld file(just a text file with .fld extension) or on the command line. If you use the same sets of folders frequently it my be helpful. But it does not periodically save a list of open folders. You may download it here: Miles Ahead's Windows Downloads

    On the same page is another freeware I wrote called FolderCache but it saves the list of folders on shutdown. So you may have the same issue with power glitch. In any case if you are experiencing power glitches it may be worth it to invest in a UPS. Even the "cheap" ones that do not condition the power are better than just losing power suddenly. Now and then you see them on sale under $50.
      My Computer


  3. Posts : 630
    Windows 10 Pro 64 bit
       #3

    Pretty cool app's MilesAhead. Like them. Wouldn't System Restore work with this? The UPS is a good option. But don't go cheap! Spend the money and get quality. Try System Restore.
      My Computer


  4. Posts : 3
    Windows 7 Ultimate x64
    Thread Starter
       #4

    MilesAhead said:
    This may be useful for automatically positioning and sizing windows:
    https://sourceforge.net/projects/winsize2/

    I wrote a freeware called fold that opens multiple folders from a list in an .fld file(just a text file with .fld extension) or on the command line.

    On the same page is another freeware I wrote called FolderCache but it saves the list of folders on shutdown. So you may have the same issue with power glitch.
    Thanks Miles! Thats useful! May i ask you something? Why does Folder Cache saves the list only on shutdown? Is there any way to tweak it to save and update the folder list every 5 or "X" amount of minutes?

    EDIT: or if you know where is stored the list of opened folders, i may make a batch file that saves it to a .fld every 5 minutes and open it with your "Fold" app in case of failure.
      My Computer


  5. Posts : 5,092
    Windows 7 32 bit
       #5

    Hi. I have an AutoHotkey script I have been working on. I only have a Laptop but I think it should work OK in most situations. I call it FolderSave(catchy eh?) and how to use is run it, it sits in the tray. If you have saved a set of folders the command in the tray menu to Load Folders will load them. I did it in such a way that you could have more than one folder open to the same disk directory. In other words, you could have 2 or 3 folders C:\MyFolder side by side. The drawback to doing it that way is on load if other windows are opening and take the focus away, the positioning and sizing will get confused. So it is best to load the folders when no other windows are likely to open.

    So far it manually saves the folder set via hotkey or tray menu command. It also has a tray menu command to close all folders. We can try to have it autosave on a timer but that will probably take some messing around. If you want to test it out you will need to get AutoHotkey download(which is a free Windows programming language and tool set) from here:
    https://autohotkey.com/

    Unlike FolderCache, FolderSave saves the size and position of each folder and restores those during loading. For now, to save more than one folder set you would just copy the exe to an empty folder and run it. You could have shortcuts to several copies of the exe. The file it writes his hard coded but it is in the same folder as the exe. So by making more folders you can save several sets, although only one FolderSave.exe at a time can run in the tray. If you run it again, say from a different folder with a different save set, it will replace the current program in the tray. Klunky but I like to get something simple working and enhance it over time.

    I am attaching FolderSave.zip that has ahk source, the exe and the custom icon file so that you can make your own changes and compile it if you like. Once I get it to where it works smoothly I may upload to my site as a new freeware.

    The exe can be tried as is. Just copy it to an empty folder and run it. While it is in the tray position some folder windows and save. One important note, you may have to set the Folder Option "Display Full Path in Title Bar" for it to work. That way the full folder path is available as the window title. That is the only way I know which folder the window belongs to.
    How to restore opened folders on crash or power failure? Attached Files
      My Computer


  6. Posts : 5,092
    Windows 7 32 bit
       #6

    Another note: As it is now the folder load loop waits 2 seconds after launching the folder to move and size it on screen. So it will only work for local drives that snap open. Anything with a delay such as waiting for a network drive to map or something like that, it may open but the positioning will likely be all scrambled. It is still at the "hack" stage. :)
      My Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    Lance1 said:
    Pretty cool app's MilesAhead. Like them. Wouldn't System Restore work with this? The UPS is a good option. But don't go cheap! Spend the money and get quality. Try System Restore.
    If system restore works for you, you are good. But it doesn't work for everyone. It always worked on my desktop PCs. But this Laptop it may work 1 out of 20 attempts. I use Rollback software and the registry backup that I mentioned from the tweaking site Tweaking.com
      My Computer


  8. Posts : 5,092
    Windows 7 32 bit
       #8

    mrbrowny said:
    Why does Folder Cache saves the list only on shutdown?
    FolderCache saves the folder list when you quit the program. It has nothing to do with system shutdown other than the fact that the program quits when Windows shuts down.

    The file with the folder list is named FolderCache.txt in the same folder as FolderCache.exe. The difference is FolderCache was designed as a Most Recently Used list. If you open a folder already in the list it is bumped to the top. It does not save duplicates. So if you work with 3 folder windows of the same directory, only one will be saved with FolderCache.
      My Computer


  9. Posts : 5,092
    Windows 7 32 bit
       #9

    New version of FolderSave


    This version works a bit better. It should not be bothered by other windows opening or getting focus while loading folders. To accomplish that I had to hide each window after opening and sizing it. So don't be dismayed as each window moves, then disappears. Once all are in position they are made visible at once.

    If this seems usable then the matter of auto save can be explored. If it seems too klunky let me know. As it is now it is good enough for my own use. :)
    How to restore opened folders on crash or power failure? Attached Files
      My Computer


  10. Posts : 5,092
    Windows 7 32 bit
       #10

    3rd time is a charm


    OK. This version is nicer. Instead of hiding the windows to ensure I could catch a folder with a duplicate name, before opening each folder I set the focus to the desktop. That way I can use the WinWaitActive function. Now the Windows open, then move to position without disappearing or generating delays.
    How to restore opened folders on crash or power failure? Attached Files
    Last edited by MilesAhead; 23 Jun 2016 at 12:06. Reason: added note to the wrong post
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:56.
Find Us