回复 3# 求知路漫漫
要多套一层引号,不知道为什么第二次调用的时候会丢一对引号
win7默认不是自带有powershell的吗- cd /d "%~dp0" && fltmc >nul || powershell "start -verb runas cmd.exe -arg '/c %~s0 ""%1""'" && exit
- echo %1
- pause
复制代码
- cd /d "%~dp0" && fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 "^&chr(34)^&"%~1"^&chr(34)^&"","","runas",1)(window.close) && exit
- echo %1
- pause
复制代码
|