Language: PowerShell
Launch ASP.NET Development Server from PowerShell
$path = resolve-path . $rand = New-Object system.random $port = $rand.next(2048,10240) $path_to_devserver = "C:\\Program Files (x86)\\Common Files\\microsoft shared\\DevServer\\9.0\\Webdev.WebServer.exe" & $path_to_devserver /port:$port /path:$path (new-object -com shell.application).ShellExecute("http:\\localhost:$port")
Tags:
Description:
I'm lazy! :D
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

