电脑的时间同步电池坏掉了,每次开机都要调整时间

电脑的时间同步的电池没电了,每天开机时间都不对,要打开时间同步按钮来设置时间

解决方案

1.找到这个设置并打开,实际上,要打开这个界面,时间才会同步,可能是我的电脑原因,所以我没办法打开这个就结束了

2.写一个bat脚本,后缀为.bat就可以了

复制代码
@echo off
title Network Time Sync Tool
color 0A

echo =========================================
echo           Network Time Sync Tool
echo =========================================
echo.
echo This tool will help you sync network time through Windows settings
echo.
echo Preparing...
echo.

:: Check for administrator privileges
net session >nul 2>&1
if %errorLevel% equ 0 (
    echo Administrator privileges detected, attempting automatic time sync...
    echo.
    w32tm /resync /force
    
    if %errorLevel% equ 0 (
        echo =========================================
        echo Time synchronization successful!
        echo.
        echo Current system time: %date% %time%
        echo =========================================
        echo.
        echo Your system time has been successfully synced with network time.
        pause
        exit /b
    ) else (
        echo Automatic sync failed, will open time settings interface...
    )
)

echo =========================================
echo Please follow these steps to sync time manually:
echo 1. Select the "Sync" button in the popup window
echo 2. The window will close automatically after 3 seconds
echo =========================================
echo.

:: Open Windows time settings
start ms-settings:dateandtime

echo Time settings window has opened, please complete the synchronization.
echo Window will close automatically in 3 seconds...
echo.

:: Wait for 3 seconds
timeout /t 3 /nobreak >nul

:: Close the time settings window
taskkill /f /im SystemSettings.exe >nul 2>&1

3.把bat文件放到启动文件夹里面

看我的路径,找不到的就win+r,然后输入下面的指令

复制代码
shell:Common Startup
相关推荐
东风西巷6 小时前
猫眼浏览器:简约安全的 Chrome 内核增强版浏览器
前端·chrome·安全·电脑·软件需求
AORO20251 天前
什么是三防平板电脑?三防平板有什么作用?
网络·5g·电脑·制造·信息与通信
Digitally2 天前
如何将照片从 realme 手机传输到电脑?
智能手机·电脑
科技智驱2 天前
两款免费数据恢复软件介绍,Win/Mac均可用
电脑·数据恢复
SHUIPING_YANG2 天前
windows软件ARM64和AMD64(x64)区别,如何查看电脑支持哪种
windows·电脑
fatiaozhang95273 天前
中兴云电脑W101D2-晶晨S905L3A-2G+8G-安卓9-线刷固件包
android·网络·电脑·电视盒子·刷机固件·机顶盒刷机
一直跑3 天前
预装Windows 11系统的新电脑怎么跳过联网验机
电脑
paopaokaka_luck3 天前
个人健康管理小程序(消息订阅、Echarts图形化分析)
前端·vue.js·spring boot·电脑
夏冰加密软件3 天前
《超级秘密文件夹》密码遗忘?试用版/正式版找回教程(附界面操作步骤)
windows·电脑