Main Forum > Tweaking.com Support & Help

Cannot back up my registry

<< < (2/3) > >>

Shane:
That explains it then, if nothing is in that folder then the program will fail to copy the registry to the destination since it isn't there.

After the folder with your computer name there should be a folder showing date and time like this "1.24.2014_7.26.52-AM"

Then in that folder will be the backup and the logs. The program uses the API MakeSureDirectoryPathExists
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680352%28v=vs.85%29.aspx

I need to adjust my code to report if that API fails to make the folder path.

So the question now is, why did it fail? It failed at the part to make the folder with the date and time, the only way I could see it would fail at that is if for some reason the date and time format has chars that are not allowed to be in a folder name.

In the control panel open up Region and that will show what formats for date and time and all that are set, post a screen shot of that for me please :-)

Shane

ijw:
Done!

Shane:
Ok good. As a test would you mind setting the format to match mine, reboot and then try a backup?

If it works then I will know how to replicate the problem, which means I can fix it :-D

Shane

ijw:
Changing the date format did the trick. Backing up a treat!

However, still looking forward to a fix in a new version. I'm too long in the tooth to cope with too much change in my life - changing to the American date format permanently might be too much for me.

Shane, much obliged mate.

Ian

Shane:
Ok found the problem. :artist:

The program takes the date separator that is set on the system and replaces it with a period when saving the folder name, so normally 01/24/2014 will be 01.25.2014. Because normally a / cant be used in a folder name. But I noticed when i set my system to the same time format as yours the short date didn't change even though I set it to the same region as you. So you must have set it yourself on that part, and so when I did as well Windows changed the date separator from / to ", " (comma and a space).

So the / wasn't being removed from the folder name since windows wasnt reporting it as the date separator and thus the folder couldn't be created. So the fix was to make a command that checks and replaces all the chars that cant be in a folder name with a period instead. tested and works fine on my system :-)

By doing it this way it should cover any other custom date formats a user might set. :wink:

Look for the new version out soon.

Shane

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version