Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to restore opened folders on crash or power failure?

13 Jun 2016   #1
mrbrowny

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.
13 Jun 2016   #2
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
13 Jun 2016   #3
Lance1

Windows 7 Ultimate, Service Pack 1, 64 bit
 
 

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 System SpecsSystem Spec
.

13 Jun 2016   #4
mrbrowny

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
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 System SpecsSystem Spec
16 Jun 2016   #5
MilesAhead

Windows 7 32 bit
 
 

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.


Attached Files
File Type: zip FolderSave.zip (416.3 KB, 2 views)
My System SpecsSystem Spec
16 Jun 2016   #6
MilesAhead

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
17 Jun 2016   #7
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by Lance1 View Post
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 System SpecsSystem Spec
17 Jun 2016   #8
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by mrbrowny View Post
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 System SpecsSystem Spec
20 Jun 2016   #9
MilesAhead

Windows 7 32 bit
 
 
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.


Attached Files
File Type: zip FolderSave.zip (416.4 KB, 1 views)
My System SpecsSystem Spec
21 Jun 2016   #10
MilesAhead

Windows 7 32 bit
 
 
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.


Attached Files
File Type: zip FolderSave.zip (416.4 KB, 1 views)
My System SpecsSystem Spec
Reply

 How to restore opened folders on crash or power failure?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
BSOD Driver power state failure when shutting down /failure USBports
Hi, I've been browsing the site and the internet for a sollution to my problem, but can't seem te find it. There are similar postings, but they're always just a little different. So that's why i posted the new thread. Since a couple of days i've been experiencing troubles shutting down...
BSOD Help and Support
Some of my folders have been coloured red, and can't be opened.
I have just accessed a folder which contains several files and related folders, and find that the folders are coloured red with the folder titles replaced by numbers (R.F. 08022013141205257205855 for example). The folders are inaccessible. Other files are unaffected. I have also had this happen to...
General Discussion
Driver power state failure crash-report included
Can someone tell me from the reports what and why I crashed??? Another BSOD! I was playing a game in Facebook, several windows open, but that's my usual! Windows 7 Pro, Service Pack 1, Chrome
BSOD Help and Support
Power failure during a attempted system restore.
Hello, I recently did a system restore late at night just so this problem would not happen (around 2am) with no weather and with my luck the power clips on and off. :mad: I use windows 7 home edition. When I start my computer it does not go to the login screen but shows a big bar at the...
General Discussion
Folders sorting once opened
I have a large amount of photos saved in one folder and want them to be sorted by the date they were placed there, for some reason the "sort by date" feature doesnt do this, the "sort by date last saved" does work, however the problem i have is that when the folder is opened winodws spends 10...
General Discussion
Disable Frequently Opened Folders
I searched a little on here and couldn't find an answer. I'm trying to disable the list of frequently opened folders when I click my Windows Explorer icon in the task bar. I just pin my commonly opened folders and the frequent list is redundant. I know I got rid of it in my beta build, but now I...
Customization


Our Sites

Site Links

About Us

Find 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 13:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App