I have tested 90% of the examples in the english readme file and also tested the script file run.bat and the example menu.lst.
Using wenv allows the user to use variables and calculate values or even dynamically construct a configfile (new menu.lst file).
If you have a lot of ISO files, you now don't need to make a new menu.lst entry every time you add another iso!
(p.s. sorry for the double post - I thought I would start a new thread for anyone who wants to try this at home!)
under grub4dos shell environmant type /wenv: VARIABLE is made of characters "_/A-Z/a-z/0-9" max length=8, and the first character is not 0-9 WENV SET VARIABLE=[$U|L,] [$input,] STRING SET VARIABLE=[[$U|L, ] <[[STRING] [${VARIABLE}]] | [*ADDR]>] SET [PREFIX[*]] WENV GET [VARIABLE] | [PREFIX[*]] WENV RESET [VARIABLE] | [PREFIX[*]] WENV CALC <${VAR}|*ADDR> [=<${VAR}|[*]INT...> [OPERATOR <${VAR}|[*]INT...>]] WENV READ <FILE> WENV CALL <grub4dos-builtincmd | ${VARIABLE} | *ADDR> WENV EXEC <command | ${VARIABLE} | *ADDR> WENV CHECK <string|${VAR}|[*]INTEGER> compare-op <string|${VAR}|[*]INTEGER> compare-op support ==,<>,>=,<= WENV FOR /L %i IN (start,step,end) DO wenv-command FOR /F ["options"] %i IN ( file ) DO wenv-command FOR /F ["options"] %i IN ("string") DO wenv-command WENV ECHO [string]
default 0 timeout 5 clear /wenv echo Today is ${@DATE} ${@TIME} pause --wait=3 title 0. Auto-make menu for /BOOT/IMGS/ folder # call the RUN batch file and create a configfile in the ramdrive for all image files /RUN.bat .Automenu # Load the new configfile configfile (md)0x3000+0x10 title 1. Boot dos # call the RUN batch file with the file we want to load in the /BOOT/IMGS folder specified /RUN.bat DOS622.IMA # Add the boot command so the user can use the cursor keys to select this menu entry boot title 2. Specify an iso file to run # list all files in the /boot/imgs folder so the user can see ls /boot/imgs/ echo # Ask user which iso they want (converts to uppercase as $U is specified) /WENV set ask=$U,$input,Enter iso name with no extension (e.g. dban) : /WENV get ask || echo No iso file specified! && configfile /menu.lst clear /WENV echo Loading /boot/imgs/${ask}.iso - please wait ... # run the grub4dos map command and specify the iso file we want /WENV call map --mem (bd)/boot/imgs/${ask}.iso (0xff) map --hook chainloader (0xff)