11-07-2018, 12:31 AM
Hello everyone, I want to use QM to run the cmd file, but it can't run normally. It is normal to directly run the cmd file with a double mouse click. I hope someone can help me, thanks in advance.
cmd file:
__________________________________________________________
cd C:\Windows\System32
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set {ramdiskoptions} ramdisksdipath \EFI\BOOT\BOOT.sdi
for /f "delims={,} tokens=2" %%a in ('bcdedit /store Z:\EFI\Microsoft\Boot\BCD /create /d "add itm" /application osloader') do set Guid={%%a}
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% device boot
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% device ramdisk="[boot]\EFI\BOOT\BOOT.wim,{ramdiskoptions}"
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% osdevice ramdisk="[boot]\EFI\BOOT\BOOT.wim,{ramdiskoptions}"
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% path \windows\system32\boot\winload.efi
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% locale zh-CN
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% inherit {bootloadersettings}
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% systemroot \windows
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% BootMenuPolicy Legacy
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% detecthal yes
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% winpe yes
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /displayorder %Guid% -addlast
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /timeout 8
pause
cmd file:
__________________________________________________________
cd C:\Windows\System32
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set {ramdiskoptions} ramdisksdipath \EFI\BOOT\BOOT.sdi
for /f "delims={,} tokens=2" %%a in ('bcdedit /store Z:\EFI\Microsoft\Boot\BCD /create /d "add itm" /application osloader') do set Guid={%%a}
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% device boot
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% device ramdisk="[boot]\EFI\BOOT\BOOT.wim,{ramdiskoptions}"
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% osdevice ramdisk="[boot]\EFI\BOOT\BOOT.wim,{ramdiskoptions}"
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% path \windows\system32\boot\winload.efi
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% locale zh-CN
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% inherit {bootloadersettings}
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% systemroot \windows
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% BootMenuPolicy Legacy
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% detecthal yes
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /set %Guid% winpe yes
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /displayorder %Guid% -addlast
bcdedit /store Z:\EFI\Microsoft\Boot\BCD /timeout 8
pause