Skip to content

Instantly share code, notes, and snippets.

@daviseford
Last active November 8, 2018 17:18
Show Gist options
  • Save daviseford/3c0496154ea1961e3432c9812e0301e4 to your computer and use it in GitHub Desktop.
Save daviseford/3c0496154ea1961e3432c9812e0301e4 to your computer and use it in GitHub Desktop.
opens multiple browsers. copy paste this text into a .bat file and run it
@echo off
color 0a
echo " _____ ____ ____ _____ "
echo " |_ _| |_ \ / _||_ _| "
echo " | | | \/ | | | "
echo " | | _ | |\ /| | | | "
echo " _| |__/ | _| |_\/_| |_ _| |_ "
echo " |________||_____||_____||_____| "
echo " "
set "BaseURL=lmi.org"
set "URLAddress=/"
set "ENV=dev"
set /P "URLAddress=Enter the destination you want to visit (default: %URLAddress%): "
set /P "ENV=Do you want to load 'dev', 'stage', or 'prod'? (default: %ENV%): "
IF %ENV%==prod (
set "Subdomain=www."
) ELSE IF %ENV%==stage (
set "Subdomain=wwwstage."
) ELSE (
set "Subdomain=wwwdev."
)
start iexplore %Subdomain%%BaseURL%%URLAddress%
start chrome %Subdomain%%BaseURL%%URLAddress%
start firefox %Subdomain%%BaseURL%%URLAddress%
start microsoft-edge:http://%Subdomain%%BaseURL%%URLAddress%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment