Open url batch file




















All PCs are on a local workgroup and are admin users. I have a batch file that does a bunch of things and at the end needs to open up a web browser to a page. Is there a way to, in essence, call ShellExecute on a http to open the web page? Windows Command Prompt. Is there a way to, in essence, call ShellExecute on a http to open the web page?

You can use the start command to do much the same thing as ShellExecute. For example. This will launch whatever browser is the default browser, so won't necessarily launch Internet Explorer.

Unfortunately, the best method to approach this is to use Internet Explorer as it's a browser that is guaranteed to be on Windows based machines. This will also bring compatibility of other users which might have alternative browsers such as Firefox, Chrome, Opera.. When you use the start command to a website it will use the default browser by default but if you want to use a specific browser then use start iexplorer.

Obviously not great for distributing it, but if you're using it for a specific machine, it should work fine. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. However, in your case, type in the one hand powershell command to goto powershell prompt.

It always will open your URL in the default browser. S : Please, don't hesitate to edit my answer because i probably made grammatical mistakes due to my low english level. Best regards First provide the full path to the browser application file and then the complete link like this:.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Ask Question. Asked 4 years, 7 months ago. Active 1 month ago. Viewed 50k times. Improve this question.

Adrian Tompkins 5, 1 1 gold badge 26 26 silver badges 67 67 bronze badges. Add a comment. Sorry for the inconvenience caused.

Sorry if the answer doesn't suit your need. I wanted to ask you for further information in the comment but the system blocked me, please reply at the comment of this answer or else I can't reply The IP6 prefix is i. The :loop label echoes the command that you want to use with the first url. A prompt will ask to continue and repeat the loop, else exits. Default reply to continue is y. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 3 years, 8 months ago.



0コメント

  • 1000 / 1000