@echo off echo %cd% subst B: %cd% cd /D B:\ cd REM start /B python -m SimpleHTTPServer start B:\mongoose.exe echo monogoose started in cd IF EXIST "C:\Program Files\Google\Chrome\Application\chrome.exe" ( REM Chrome 64 bit echo Running Chrome 64 bit with mongoose web server "C:\Program Files\Google\Chrome\Application\chrome.exe" http://localhost:8000:/html5_index.html ) ELSE ( IF EXIST "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ( REM Chrome 32bit echo Running Chrome 32 bit with mongoose web server "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://localhost:8000/html5_index.html ) ELSE ( REM default to Microsoft Edge echo Running Microsoft Edge with mongoose web server start "" "msedge.exe" http://localhost:8000/html5_index.html ) ) pause