In the bat file add this line
FOR /F "tokens=4" %%G IN ('dir /AD /-C ^| find ".exe"') DO start "" /b %%G
Executes each .exe file in your current directory. as well as
*.exe
would do if * was supported in batch mode.
If you want to execute it directly from the command prompt window, just do
FOR /F "tokens=4" %G IN ('dir /AD /-C ^| find ".exe"') DO start "" /b %G
source share