當批量運行這個時,我得到一個「(這個時候是意外的」錯誤,爲什麼?我用引號把變量和變量等同起來。 y,然後括號。(此時出乎意料的是批次
echo Would you like to update and restore to the latest OS? (-l -e) (Y/N)
set /p latestOS= ""
if "%latestOS%"=="y" (
echo Restoring...make sure your device is plugged in!
\idevicerestore\idevicerestore -l -e
echo Done.
timeout /t 2 /nobreak > NUL
) else (
echo Okay. Where is the IPSW located? EX: C:\memez.ipsw
set /p IPSWlocid= ""
echo Alright. Is it a custom IPSW? Note that the device must be vulnerable to limera1n. (-c) (Y/N)
set /p IPSWiscustomid= ""
rem more stuff soon
)
:menu
它未能在是否latestOS線。
Stil失敗,但之後得到了不同的錯誤。顯然第一個回波線中的圓括號將它搞砸了。謝謝! – TheDankestOfMemes