Search code examples
windowscmdcommand-promptwmic

WMIC open file or URL


Using cmd.exe, you can open a file or URL in the user’s preferred application.

start example.txt
start http://example.com

I see that WMIC can start a program

wmic process call create notepad.exe

However, can it open a file or URL, like start?

Start - Windows CMD


Solution

  • This won't open the 'favored' browser, but you can get to a browser without the need for start.

    wmic process call create "C:\Program Files\Internet Explorer\iexplore.exe www.google.com"