Say you’ve got two directory branches on your local machine (development and prod) and you want a simple way to quickly flip between them.

Justin Madill showed me this neat trick where you can create a virtual directory link and then simply flip between:

> mklink /d virtualDir trunk
> mklink /d virtualDir prod

Then have IIS just point to virtualDir, and simple delete and re-create the link depending on whether you want to point to trunk or prod.

To delete the link go:

> rd virtualDir