Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to run cmd file
#1
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


Attached Files Image(s)
       


Messages In This Thread
Unable to run cmd file - by win - 11-07-2018, 12:31 AM
RE: Unable to run cmd file - by win - 11-07-2018, 03:52 AM
RE: Unable to run cmd file - by Gintaras - 11-07-2018, 07:19 AM
RE: Unable to run cmd file - by win - 11-07-2018, 08:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)