Skip to content

Instantly share code, notes, and snippets.

@cuth
Created March 17, 2014 16:36
Show Gist options
  • Save cuth/9602960 to your computer and use it in GitHub Desktop.
Save cuth/9602960 to your computer and use it in GitHub Desktop.
Batch file to run IIS Express on the current directory. Optionally set the first parameter to set the port number.
SET EX="C:\Program Files\IIS Express\iisexpress.exe"
if not "%1" == "" (
CALL %EX% /path:%CD% /port:%1
) else (
CALL %EX% /path:%CD%
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment