Reputation: 23
How can I set the short time format of Windows to: HH:mm:ss
and short date like this: d/M/yyyy
with batch file?
And I'm in France and all the computers are in French, is it different?
Upvotes: 2
Views: 2724
Reputation: 57332
save this with .bat
extension and run it with admin permissions:
Windows Registry Editor Version 5.00
; @ECHO OFF
; CLS
; REGEDIT.EXE /S "%~f0"
; EXIT
[HKEY_CURRENT_USER\Control Panel\International]
"sDate"="/"
"sShortDate"="d/M/yyyy"
"sTime"=":"
"sTimeFormat"="HH:mm:ss"
"sShortTime"="HH:mm"
"sYearMonth"="M yyyy"
This uses REGEDIT /S
so its compatible with everything from windows XP and above.
If your machine is at least with Vista you can use REG
command to avoid annoying output from Windows Registry Editor Version 5.00
and the cls
. In command prompt the changes will take effect in the next cmd session.
Upvotes: 1