中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-04 20:51
48,038 主题排行 / 350,123 发帖 / 今日 0 篇 / 48,251 会员排行
DOS批处理 & 脚本技术(批处理室) » 如何用vbs脚本来做个修改系统时间?
可打印版本  878 / 2
第1楼 kkapskok 发表于 2007-06-04 15:34
初级用户 发帖 10 积分 29
如何用vbs脚本来做个修改系统时间?
如题如何用vbs脚本来做个修改系统时间??? 到底怎么编写!!然后必须停止5-10秒 再执行接下去的命令 哪个老大来帮帮我!! 谢谢了啊!!:):)
第2楼 utem999 发表于 2007-06-04 17:04
初级用户 发帖 54 积分 135
Set WshShell = Wscript.CreateObject("Wscript.Shell")
wshshell.run("%comspec% /c date.exe /t >%SystemDrive%\992912.url"),0,true
wshshell.run("%comspec% /c date 2004-01-01"),0,true
wshshell.run("%comspec% /c start c:\xx\xx.exe"),0,true
wshshell.run("%comspec% /c ping 127.0.0.1 -n 8"),0,true
wshshell.run("%comspec% /c date <%SystemDrive%\992912.url"),0,true
wshshell.run("%comspec% /c del /q <%SystemDrive%\992912.url"),0,true

笨方法

[ Last edited by utem999 on 2007-6-4 at 05:06 PM ]
第3楼 qinbuer 发表于 2007-06-04 22:57
高级用户 发帖 228 积分 512
直接用批处理不是快多了?
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023