Author Topic: Registry Backup folder names (solved)  (Read 2830 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

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9279
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
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
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9279
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
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
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

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