请教各位 v 友,win 上现在有这么一个情况,只要火狐浏览器打开,某个.bat 运行的东西就会提示报错,edge 和 chrome 打开不会有问题,无奈之下只能彻底关掉火狐,有哪些原因会导致这种情况呢即使重装了火狐去掉了插件也会报错。
如下是批处理内容:
rem net session >nul 2>&1
rem echo "%errorLevel%"
rem if not "%errorLevel%" == "0" (
rem echo Oops: This tools must run with administrator permissions!
rem echo it will popup the UAC dialog, please click [Yes] to continue.
rem echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
rem echo UAC.ShellExecute "%~s0", "%*", "", "runas", 1 >> "%temp%\getadmin.vbs"
rem "%temp%\getadmin.vbs"
rem exit /b 2
rem )
rem taskkill /f /im node.exe
taskkill /f /t /im node.exe
rem %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
%~d0
cd %~dp0
node start.js
color 04
pause