Board logo

标题: 如何用vbs脚本来做个修改系统时间? [打印本页]

作者: kkapskok     时间: 2007-6-4 15:34    标题: 如何用vbs脚本来做个修改系统时间?

如题如何用vbs脚本来做个修改系统时间??? 到底怎么编写!!然后必须停止5-10秒 再执行接下去的命令 哪个老大来帮帮我!! 谢谢了啊!!:):)
作者: utem999     时间: 2007-6-4 17:04
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 ]
作者: qinbuer     时间: 2007-6-4 22:57
直接用批处理不是快多了?