Gokul's Blog


Leave a comment

Running Cassini from command line

I saw an web-application containing an exe once executed to run the website as a demo using the Cassini web-server.

 

So I played around a bit to figure out how to achieve the same using a batch file.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE /path:C:\My-Webapp\MyFolder /port:8001
start iexplore http://localhost:8001/
pause

Advertisements


Leave a comment

Running Cassini /web dev server from command line

I saw an web-application containing an exe once executed to run the website as a demo using the Cassini web-server.
So I played around a bit to figure out how to achieve the same using a batch file.

Edit Updated Batch File Code:

set appPort=8009
set appPath=E:\Blogengine\BlogEngine.Web

start C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE /path:%appPath% /port:%appPort%
start iexplore http://localhost:%appPort%/