This repository has been archived by the owner on May 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding scripts to set regional time format - need reboot/GPO to take …
…effect
- Loading branch information
Mischa Taylor
committed
Jan 12, 2015
1 parent
2695f6b
commit 5cec7bc
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@setlocal EnableDelayedExpansion EnableExtensions | ||
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i" | ||
@if defined PACKER_DEBUG (@echo on) else (@echo off) | ||
|
||
title Setting time format. Please wait... | ||
|
||
echo ==^> Setting time format to AM/PM | ||
reg add "HKCU\Control Panel\International" /f /v sShortTime /t REG_SZ /d "h:mm tt" | ||
reg add "HKCU\Control Panel\International" /f /v sTimeFormat /t REG_SZ /d "h:mm:ss tt" | ||
|
||
:exit0 | ||
ver>nul | ||
goto :exit | ||
|
||
:exit1 | ||
verify other 2>nul | ||
|
||
:exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@setlocal EnableDelayedExpansion EnableExtensions | ||
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i" | ||
@if defined PACKER_DEBUG (@echo on) else (@echo off) | ||
|
||
title Setting time format. Please wait... | ||
|
||
echo ==^> Setting time format to AM/PM | ||
reg add "HKCU\Control Panel\International" /f /v sShortTime /t REG_SZ /d "HH:mm" | ||
reg add "HKCU\Control Panel\International" /f /v sTimeFormat /t REG_SZ /d "HH:mm:ss" | ||
|
||
:exit0 | ||
ver>nul | ||
goto :exit | ||
|
||
:exit1 | ||
verify other 2>nul | ||
|
||
:exit |