Home » Questions » Computers [ Ask a new question ]

Can I launch URLs from command line in Windows?

Can I launch URLs from command line in Windows?

Can I launch URLs directly from the command line in Windows?

Asked by: Guest | Views: 248
Total answers/comments: 4
Guest [Entry]

What's "launch" in this context? You can start http://www.foo.bar/ or the like, your default browser will come up and visit that URL -- is that what you mean?
Guest [Entry]

"you can run this below command and it will redirect to google chrome browser

C:\>start 'http://www.google.com'"
Guest [Entry]

"You can use this in Powershell:
Start-Process ""URL"""
Guest [Entry]

"From C# code you could just run this (cmd-start equivalent):

Process.Start(""http://stackoverflow.com"");

You've launched your url from a command-line directly (i.e. without running another program first)."