bat 要转换成EFI SHELL下bash命令,没接触过bash,极其痛苦,交期很赶,有没有大神门可以帮帮哦,可以微信我:Saber_Cao 或者QQ:284587414
例如这个bat转成bsh,万分感谢:
@ECHO OFF
CLS
REM This batch files is v0.1 for E993 8-7-2017
SET TEST_ITEM=Machine type Model Number
SET TEST_ANS=ERR
:start
CD\
CD E993
if exist prid.txt del prid.txt
if exist prid.txt goto error
AMIDEEFIx64.efi /sp INVALID
if errorlevel 1 goto error
AMIDEEFIx64.efi /sp > prid.txt
Find /I "INVALID" prid.txt
if errorlevel 1 goto error
goto pass
:ERROR
CLS
SET TEST_ANS=ERR
@ECHO *********************************************************
@ECHO ************ %TEST_ITEM% write FAIL**********************
@ECHO ************ %TEST_ITEM% write FAIL**********************
@ECHO *********************************************************
goto END
:Pass
CLS
@ECHO *********************************************************
@ECHO ************ %TEST_ITEM% write PASS**********************
@ECHO ************ %TEST_ITEM% write PASS**********************
@ECHO *********************************************************
SET TEST_ANS=OK
GOTO END
:END
例如这个bat转成bsh,万分感谢:
@ECHO OFF
CLS
REM This batch files is v0.1 for E993 8-7-2017
SET TEST_ITEM=Machine type Model Number
SET TEST_ANS=ERR
:start
CD\
CD E993
if exist prid.txt del prid.txt
if exist prid.txt goto error
AMIDEEFIx64.efi /sp INVALID
if errorlevel 1 goto error
AMIDEEFIx64.efi /sp > prid.txt
Find /I "INVALID" prid.txt
if errorlevel 1 goto error
goto pass
:ERROR
CLS
SET TEST_ANS=ERR
@ECHO *********************************************************
@ECHO ************ %TEST_ITEM% write FAIL**********************
@ECHO ************ %TEST_ITEM% write FAIL**********************
@ECHO *********************************************************
goto END
:Pass
CLS
@ECHO *********************************************************
@ECHO ************ %TEST_ITEM% write PASS**********************
@ECHO ************ %TEST_ITEM% write PASS**********************
@ECHO *********************************************************
SET TEST_ANS=OK
GOTO END
:END