双系统,开机为啥成这样了

@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
用了这个网上的代码成这样了

img


我是觉得双系统太难受了,用的win11和Uos我就删了UOS系统,然后用了这个代码,结果开机页面就是这样的,这个怎么整回去。

路径搞坏了嘛,都导致找不到各种了。。。
你是 想删除UOS吧? 直接去PE,整个删除好了,之后如果加载有问题的话,重新弄一下引导