set hd5drv=
call findudrv winsys\windows7.gho
set hd5drv=%udrv%
set hd4drv=
call findudrv winsys\VISTA.gho
set hd4drv=%udrv%
set hd3drv=
call findudrv winsys\system3.gho
set hd3drv=%udrv%
set hd2drv=
call findudrv winsys\system2.gho
set hd2drv=%udrv%
set ucddrv=
call findudrv winsys\system1.gho
set ucddrv=%udrv%
set gstdrv=
call findudrv winsys\ghost.exe
set gstdrv=%udrv%
set ucdinf=搜索结果:位于%ucddrv%
if #%ucddrv%==# set ucdinf=搜索结果:未找到
set hd2inf=搜索结果:位于%hd2drv%
if #%hd2drv%==# set hd2inf=搜索结果:未找到
set hd3inf=搜索结果:位于%hd3drv%
if #%hd3drv%==# set hd3inf=搜索结果:未找到
set hd4inf=搜索结果:位于%hd4drv%
if #%hd4drv%==# set hd4inf=搜索结果:未找到
set hd5inf=搜索结果:位于%hd5drv%
if #%hd5drv%==# set hd5inf=搜索结果:未找到
set gstinf=搜索结果:位于%gstdrv%
if #%gstdrv%==# set gstinf=搜索结果:未找到
set vcdinf=(找到光驱%cdrom%个,盘符为%cdrom1% %cdrom2% %cdrom3% )
if #%cdrom1%==# set vcdinf=(找到光驱%cdrom%个,未找到 )