Win10 uses batch processing to display time seconds

How to set the time display week in the lower right corner of Windows 10.
The link to display the week is as above, please refer to

1. BAT file

You can use Notepad to write and save and modify the suffix name to bat

2. Add and delete script code

(1), AddShowSeconds

@echo off
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
TASKKILL /F /IM explorer.exe
echo.
echo restar explorer.exe
START %windir%\explorer.exe
echo.
pause

(二)、DeleteShowSeconds

@echo off
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
TASKKILL /F /IM explorer.exe
echo.
echo restar explorer.exe
START %windir%\explorer.exe
echo.
pause

3. Effect

insert image description here

Guess you like

Origin blog.csdn.net/weixin_46032860/article/details/121002307