- @echo off
- echo dim wsh>b.vbs
- echo set wsh=WScript.CreateObject("WScript.Shell")>>b.vbs
- echo wscript.sleep 400>>b.vbs
- echo wsh.SendKeys "这里是管理员密码">>b.vbs
- echo wscript.sleep 500>>b.vbs
- echo wsh.SendKeys "{enter}">>b.vbs
- start b.vbs
- runas /user:管理员帐号 "\\192.168.0.12\sms_001\Client\ccmsetup.exe"
- del b.vbs
复制代码
|