|
本帖最后由 gbzxssx 于 2019-9-11 19:29 编辑
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
if %PROCESSOR_ARCHITECTURE%==x86 goto x86
if %PROCESSOR_ARCHITECTURE%==AMD64 goto AMD64
goto error
:error
echo "不支持此操作系统平台"
goto end
:x86
cmd.exe /c ATIx86.exe
goto end
:AMD64
cmd.exe /c ATIx64.exe
goto end
:end
exit
运行后,会出现 mshta 不是内部命令或外部命令,如图,但会继续运行,且结果正确,是啥原因?应该如何修改?
|
|