Launch Cassini from the command line

A simple batch file will do this:
taskkill /F /IM WebDev.WebServer.exe
START /D "C:\Program Files\Common Files\microsoft shared\DevServer\9.0\" /B WebDev.WebServer.EXE /port:5002 /path:"$PROJECT PATH" /vpath:"/PROJECT"

Replace $PROJECT with the local path of your web solution.

The VPATH value refers to the virtual folder that is used. This can be replaced with just / if your application runs from the web root.

Once saved into a batch file, this could be dropped into your start up folder to launch on every reboot.

Respect goes to XNeuron for the lead on this one.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

A WordPress.com Website.

Up ↑

%d bloggers like this: