怎么用脚本bat⼀vbs快速更改时区

2024-12-18 00:00:19
推荐回答(2个)
回答1:

VBS的模拟按键点击,快速转换时区.
http://www.fileden.com/files/2007/5/8/1059086/k4me_2timezone-vbs.rar
错了,是XP用的,我再去看Vista.
============
更新了,清空IE缓存后重下载即可,Win7的2个,XP的2个,Vista的2个,不过Vista用Ultimate版本测试的,basic版应该没什么兼容问题.

以下是代码参考
=============
vista
'中部时间
-----------------以下为BAT内容
echo Set WshShell = WScript.CreateObject("WScript.Shell") >k4me.vbs
echo WScript.Sleep 150>>k4me.vbs
echo WshShell.AppActivate "日期和时间" >>k4me.vbs
echo WshShell.SendKeys "z" >>k4me.vbs
echo WshShell.SendKeys "{PGUP 6}" >>k4me.vbs
echo WshShell.SendKeys "{DOWN 11}" >>k4me.vbs
echo WshShell.SendKeys "{TAB}" >>k4me.vbs
echo WshShell.SendKeys "{TAB}" >>k4me.vbs
echo WshShell.SendKeys "{ENTER}" >>k4me.vbs
echo WshShell.SendKeys "{ESC}" >>k4me.vbs

echo rundll32 shell32.dll,Control_RunDLL timedate.cpl>k4me2.bat

start k4me2.bat
k4me.vbs
del k4me2.bat
del k4me.vbs
tskill cmd

\\\\\\\\\\\\\\\\\\\\\\\\\=======================================
@@?? 我测试没问题啊,你再试试下载一次文件,注意先清空IE缓存.
如果自己写代码,末尾的tskill就是不太讲究的cmd通杀(黑窗全灭).应该没什么留下啊.

回答2:

下载 英文版的 那个软件就好了。