@echo off start /B wmenu.exe -elements "notepad;explorer;paint;" | more > %temp%/apps.txt for /f "tokens=*" %%s in (%temp%\apps.txt) do ( IF "%%s"=="notepad" ( start notepad ) ELSE IF "%%s"=="explorer" ( start %%s ) ELSE IF "%%s"=="paint" ( start mspaint ) ELSE ( REM default case... ) ) del "%temp%\apps.txt"