@sacha-marin
To boot directly to a menu batch file you have to follow the instruction here : http://ipxe.org/howto/winpe article : Customising Windows PE
tldr : mount the boot.wim in command line with imagex, add your code, unmount it, use Winiso to open it and change the old boot.wim to the new and save it, boot on it and a menu will appear, you also have to manually create the folder from the command. Im talking about the temp folder and the folder in it.
here is the code for my menu.
wpeinit
@echo off
:MENU
ECHO.
ECHO ...............................................
ECHO Its dangerous to go alone, take these windows
ECHO ...............................................
ECHO.
ECHO 1 - Windows 7 English
ECHO 2 - Windows 7 French
ECHO 3 - Windows xp english
ECHO 4 - Free donuts.
ECHO 5 - EXIT
ECHO.
SET /P M=Type 1, 2, 3, or 4 then press ENTER:
IF %M%==1 GOTO winen
IF %M%==2 GOTO winfr
IF %M%==3 GOTO winxpen
IF %M%==4 GOTO donut
IF %M%==5 GOTO EOF
:winen
net use w: \\mtl-nt-apps\apps\iso\winpe\win7eng /user:username@domain password
\\mtl-nt-apps\apps\iso\winpe\win7eng\setup.exe
GOTO MENU
:winfr
net use w: \\mtl-nt-apps\apps\iso\winpe\win7fr /user:username@domain password
\\mtl-nt-apps\apps\iso\winpe\win7fr\setup.exe
GOTO MENU
:winxpen
net use w: \\mtl-nt-apps\apps\iso\winpe\winxpen /user:sacham@paradox qwerqwer1
\\mtl-nt-apps\apps\iso\winpe\winxpen\setup.exe
GOTO MENU
:donut
echo _ _,---._
echo ,-',' `-.___
echo /-;' `._
echo /\/ ._ _,'o \
echo ( /\ _,--'\,','"`. )
echo ^|\ ,'o \' //\
echo ^| \ / ,--'""`-.
echo : \_ _/ ,-' `-._
echo \ `--' / )
echo `. \`._ ,' ________,','
echo .--` ,' ,--` __\___,;'
echo \`.,-- ,' ,`_)--' /`.,'
echo \^( ; ^| ^| ) ^(`-/
echo `--'^| ^|^) ^|-/
echo ^| ^| ^| ^| ^|
echo ^| ^| ^|,.,-. ^| ^|_
echo ^| `./ / )---` )
echo _^| / ,', ,-'
echo ,'^|_( /-^<._,' ^|--,
echo ^| `--'---. \/ \
echo ^| / \ /\ \
echo ,-^---._ ^| \ / \ \
echo ,-' \----' \/ \--`.
echo / \ \ \
echo HMMM DONUTS.
GOTO MENU
Windows xp is not working and homer is funny but useless.
ps: winen is win7english and winfr is for the french version