請將下文字複製到txt檔裡面,然後將文字檔改為time.bat
放到卡裡面按一下會自動抓PC的時間,下次開機就會生效
此種方式小改可適合在各種sport cam
@echo off
title RTC設定時間
mode con cols=0a lines=2
:a
cls
set a=%time%
set hh=%a:~0,2%
set mm=%a:~3,2%
set ss=%a:~6,2%
set cf=%a:~7,1%
set ff=%a:~6,1%
set b=%date%
set yy=%b:~0,4%
set zz=%b:~5,2%
set dd=%b:~8,2%
set xx=%b:~11,3%
set n=%\n%
color %ff%%cf%
if "%mm%"=="00" echo &cls
if "%hh%"==" 0" set hh=00
if "%hh%"==" 1" set hh=01
if "%hh%"==" 2" set hh=02
if "%hh%"==" 3" set hh=03
if "%hh%"==" 4" set hh=04
if "%hh%"==" 5" set hh=05
if "%hh%"==" 6" set hh=06
if "%hh%"==" 7" set hh=07
if "%hh%"==" 8" set hh=08
if "%hh%"==" 9" set hh=09
del DateTime.txt
echo 刪除DateTime.txt
echo UPDATE:Y>>DateTime.txt
echo 產生DateTime.txt
echo %yy%-%zz%-%dd% %hh%:%mm%:%ss%>>DateTime.txt
pause
@echo




























































































