Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get rid of the extra }
#1
Hello everyone, there are {} in my multi-line text, I have escaped, but there will be one more output after the output}

I hope someone can help me point out the mistakes. Any comments and suggestions are welcome. Thanks in advance. Smile

Macro ERR
Code:
Copy      Help
str pf="c:"

str be=F"bcdedit"
str url=F"{pf}\EFI\Microsoft\Boot\BCD"
out url
str s=
F
;{be} /store {url} /set {{ramdiskoptions}} ramdisksdidevice boot
;{be} /store {url} /set {{ramdiskoptions}} ramdisksdipath \EFI\BOOT\BOOT.sdi
;
;for /f "delims={{,}} tokens=2" %%a in ('{be} /store {url} /create /d "winPE" /applicationĀ  osloader') do set Guid={{%%a}}
;{be} /store {url} /set %Guid% device boot
;{be} /store {url} /set %Guid% device ramdisk="[boot]\EFI\BOOT\BOOT.wim,{{ramdiskoptions}}"
;{be} /store {url} /set %Guid% osdevice ramdisk="[boot]\EFI\BOOT\BOOT.wim,{{ramdiskoptions}}"
;{be} /store {url} /set %Guid% path \windows\system32\boot\winload.efi
;{be} /store {url} /set %Guid% locale zh-CN
;{be} /store {url} /set %Guid% inherit {{bootloadersettings}}
;{be} /store {url} /set %Guid% systemroot \windows
;{be} /store {url} /set %Guid% BootMenuPolicy Legacy
;{be} /store {url} /set %Guid% detecthal yes
;{be} /store {url} /set %Guid% winpe yes
;{be} /store {url} /displayorder %Guid% -addlast
;{be} /store {url} /timeout 8

out
out s


Attached Files Image(s)
   


Messages In This Thread
How to get rid of the extra } - by win - 11-05-2018, 11:11 PM
RE: How to get rid of the extra } - by Kevin - 11-06-2018, 01:11 PM
RE: How to get rid of the extra } - by win - 11-06-2018, 01:18 PM
RE: How to get rid of the extra } - by Kevin - 11-06-2018, 01:29 PM
RE: How to get rid of the extra } - by win - 11-06-2018, 09:59 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)