Код:
title Windows Xp/2003
set iso=/Boot/Windows.iso
map --mem (md)+4 (9)
map %iso% (0xff)
map (hd0) (hd1)
map (hd1) (hd0)
map --rehook
write (9) [FiraDisk]\nStartOptions=cdrom,vmem=find:%iso%;\n\0
ls (0xff)/I386/FIRADISK.INF > nul && set file=(0xff)/I386/FIRADISK.INF ! set file=(0xff)/AMD64/FIRADISK.INF
write --offset=139 %file% \r\nHKLM,"SYSTEM\\CurrentControlSet\\Control\\FiraDisk","StartOptions",0x00000000,"cdrom,vmem=find:%iso%;"\r\n;
cat --locate=/ --replace=\\ %file%
chainloader (0xff)