- @ECHO OFF
-
- Color 0A
- title InstallSoft
- echo.
- echo 请将安装文件拖放到窗口中确定即可安装
- echo.
- echo.
- set /p SoftN="请输入软件名称:"
- (echo Set WshShell=WScript.CreateObject^("WScript.Shell"^)
- echo WshShell.Run "runas /user:administrator %SoftN%"
- echo WScript.Sleep 500
- echo WshShell.SendKeys "wef;ji{Enter}") >%cd%\AdminInstall.vbs
- start %cd%\AdminInstall.vbs
- ping -n 2 127.0.0.1 > nul
- del %cd%\AdminInstall.vbs
复制代码
|