Author Topic: Registry Backup folder names (solved)  (Read 8577 times)

0 Members and 1 Guest are viewing this topic.

Offline Rob

  • Newbie
  • *
  • Join Date: Feb 2016
  • Posts: 5
  • Karma: 0
    • View Profile
Registry Backup folder names (solved)
« on: February 03, 2016, 06:27:20 pm »
When I back up the registry manually, the folder name conforms to my Regional settings YYYY-MM-DD_HH.MM.SS. But when I do an automatic backup, the names take on the format M.D.YYYY_H.M.S-tt. Is there any way to change the latter to match the former?

Right now I have (sorted by name)

2.2.2016_10.05.25-AM
2.3.2016_9.40.30-AM
2016-02-01_02.19.21
2016-02-03_12.55.04
« Last Edit: February 27, 2016, 03:23:04 pm by Rob »
"Sacred cows make the best hamburger." - Mark Twain

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup folder names
« Reply #1 on: February 25, 2016, 11:57:28 am »
Interesting, when the program does the auto backup it is calling the same buttons and commands as when you do a manual one.

I will go double check the code, the program does call the windows API to get it. I wonder if something needs more time or is being missed.

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup folder names
« Reply #2 on: February 25, 2016, 12:02:00 pm »
Actually that API is just for getting the date separator. As for the date and time format the program just calls the built in VB command of Date and Time. So it should be returned as the system tells it.

However! If you have the auto backup set to run as the system account, then I bet that the system account has different regional settings and thus we get the different folder names.

So try this, remove the auto backup and have the program do it under the current user account instead and see if that does the trick :-)

Otherwise if you need it to run from the system account, then one trick you can do is use my technicians toolbox program and use the run as system account tool and load explorer.exe as the system account. Then you should be able to the control panel and change the regional settings for it :-)

Shane

Offline Rob

  • Newbie
  • *
  • Join Date: Feb 2016
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Registry Backup folder names
« Reply #3 on: February 25, 2016, 12:12:00 pm »
I've been using the /auto parm in my nightly backup batch file. Thinking of "system" as a user never occurred to me! I'll try it.
"Sacred cows make the best hamburger." - Mark Twain

Offline Rob

  • Newbie
  • *
  • Join Date: Feb 2016
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Registry Backup folder names
« Reply #4 on: February 27, 2016, 03:08:26 pm »
It worked. Hallelujah!
"Sacred cows make the best hamburger." - Mark Twain