!BAT
#if exist CALL goto :EOF
echo -n Counting Windows Install ISOs %redir%
insmod /%grub%/LstFExt.g4b > nul
echo -n %redir%
# get filecount of WINDOWS ISOs for next WINDOWS menu
set CXP=0
set CV=0
set C7=0
set C8=0
set C28=0
set C12=0
set C10=0
set CALL=0
LstFExt.g4b /_ISO/WINDOWS/XP .iso SILENT
set CXP=%FCOUNT% && echo -n [X(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/VISTA .iso SILENT
set CV=%FCOUNT% && echo -n WV(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/WIN7 .iso SILENT
set C7=%FCOUNT% && echo -n W7(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/WIN8 .iso SILENT
set C8=%FCOUNT% && echo -n W8(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/SVR2K8R2 .iso SILENT
set C28=%FCOUNT% && echo -n W2K8(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/SVR2012 .iso SILENT
set C12=%FCOUNT% && echo -n W2012(%FCOUNT%) %redir%
LstFExt.g4b /_ISO/WINDOWS/WIN10 .iso SILENT
set C10=%FCOUNT% && echo -n W10(%FCOUNT%)] %redir%
set /a CALL=%CXP%+%CV%+%C7%+%C8%+%C28%+%C12%+%C10% > nul
# clear variables set by LstFExt.g4b
set FCOUNT=
set FILEPATH=
set FILENAME=
set FILEEXT=
set FILEDIR=
