if not exist c:\boot.ini goto :eof
attrib -s -h -r c:\boot.ini
if exist c:\boot.bak del c:\boot.bak 2> nul
if exist c:\boot.new del c:\boot.new 2> nul
copy c:\boot.ini c:\boot.bak
for /f "delims=" %%l in (c:\boot.ini) do (
echo.%%l | find/i "default=multi(0)disk(0)rdisk(0)partition(1)\windows">nul && echo default=c:\phldr||echo %%l
)>>c:\boot.new
attrib -s -h -r c:\boot.ini
copy c:\boot.new c:\boot.ini>nul
attrib +s +h +r c:\boot.ini
del c:\boot.new