|
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
for /f "delims={,} tokens=2" %%a in ('bcdedit /copy {bootmgr} /d "OneKeyRecovery" ') do set GUID={%%a}
bcdedit /set %GUID% path \EFI\Boot\lenovookr.efi
bcdedit /deletevalue %GUID% default
bcdedit /deletevalue %GUID% displayorder
bcdedit /deletevalue %GUID% inherit
bcdedit /deletevalue %GUID% locale
bcdedit /deletevalue %GUID% resumeobject
bcdedit /deletevalue %GUID% timeout
bcdedit /deletevalue %GUID% toolsdisplayorder
bcdedit /displayorder %GUID% /addlast
pause
|
|