http://www.quickmacros.com/forum/showthr...p?tid=6570
In the above case, used the full path to solve the problem, but my problem still can't be solved.
I hope the developer can help me, thank you.
The following code uses an absolute path and still complains
Macro Macro5
In the above case, used the full path to solve the problem, but my problem still can't be solved.

The following code uses an absolute path and still complains

Macro Macro5
str be="C:\Windows\System32\bcdedit.exe"
str url="Z:\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 "GPT+PE" /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 s
__TempFile f.Init(".bat" "" "" s)
RunConsole2 f