set _path=
if exist %_path%/lin64ram.dat goto :new
checkrange 0,1 is64bit && goto :x32

set _kernel=%_path%/abr64ker.dat product=bootagent media_for_windows quiet vga=791
set _initrd=%_path%/abr64ram.dat %_path%/dat8.dat
goto :boot

:x32
set _kernel=%_path%/abr32ker.dat product=bootagent media_for_windows quiet vga=791
set _initrd=%_path%/abr32ram.dat %_path%/dat4.dat
goto :boot

:new
set _kernel=%_path%/kernel.dat product=bootagent media_for_windows quiet logo.nologo panic=15 vga=791
set _initrd=%_path%/lin64ram.dat %_path%/ramdisk.dat %_path%/ramdisk2.dat
goto :boot

:boot
kernel	%_kernel%
initrd	%_initrd%