在运行.bat文件命令之前添加call语句。例如:callC:\myscript.bat
@echooff%1%2ver|find"5.">nul&&goto:stmshtavbscript:createobject("shell.application").shellexecute("%~s0","goto:st","","runas",1)(window.close)&goto:eof:stcopy"%~0""%windir%\system32\"netshwlanstarthostednetwork将你的脚本代码前面加上上面的脚本,并保存。双击运行...