@echo off
%~d0
echo %errorlevel%
mountvol z: /s
if %errorlevel% equ 0 ( goto uefi_boot_uninstall ) else ( goto legacy_boot_install )
::shutdown -r -t 1
:uefi_boot_uninstall
echo This computer is UEFI boot
bcdedit /set "{bootmgr}" path \EFI\Microsoft\Boot\bootmgfw.efi
rd z:\grub /s/q
mountvol z: /d
cmd
:legacy_boot_install
echo This computer is Legacy boot can not unstall
cmd
用了这个网上的代码成这样了
路径搞坏了嘛,都导致找不到各种了。。。
你是 想删除UOS吧? 直接去PE,整个删除好了,之后如果加载有问题的话,重新弄一下引导