Solved

Win 10 Using IE vs Edge from CMD batch file

Posted on 2016-07-26
7
32 Views
Last Modified: 2016-08-22
I have a bat file that contains two lines:

     "C:\Program Files\Internet Explorer\iexplore.exe" https://www.amazon.com/
     exit

Once Amazon comes up, the CMD window stays open until I close IE.

Is there a way to get the command window to close without closing IE?
0
Comment
Question by:Ed-SSA
  • 3
  • 2
  • 2
7 Comments
 
LVL 23

Expert Comment

by:NVIT
Comment Utility
start "C:\Program Files\Internet Explorer\iexplore.exe" https://www.amazon.com/
exit
1
 
LVL 51

Accepted Solution

by:
Bill Prew earned 500 total points (awarded by participants)
Comment Utility
I think you will need to include the window title parm on the START command, since the program path has quotes.  Use the following.

start "" "C:\Program Files\Internet Explorer\iexplore.exe" https://www.amazon.com/
exit

Open in new window

~bp
1
 

Author Comment

by:Ed-SSA
Comment Utility
Bill, NVIT -

Either solution works but the best the extra ("") double quotes: it remembers where IE was exited (3 HD displays), size & location. How does that work?????
Anyway - thank you so very much.!!  
- Ed
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 51

Expert Comment

by:Bill Prew
Comment Utility
I'm not sure the START has anything to do with IE restarting where it was, although honestly I'd have to experiment a bit to better understand that one.  Glad you got some working solutions.

~bp
1
 
LVL 51

Expert Comment

by:Bill Prew
Comment Utility
Actually I take that back.  Even though it appears both work, the first by NVIT doesn't.  It isn't actually starting IE by the path in the START command, that is failing because the extra "" are missing, and needed.  But it also looks at the URL and launches it, which cause IE to load, since that must be your default browser.

When I just did a quick test here, it loaded Amazon site, but in Firefox here, my default browser, when I used NVIT approach.  Using my approach it did load IE and open Amazon.

So I suspect that has some bearing on it remembering where it left off, etc.  Bottom line, use the second example.

~bp
1
 

Author Comment

by:Ed-SSA
Comment Utility
Bill -

Of course you are right. Last night I was so happy to NOT see the command window , I never noticed that without quotes, it launched the EDGE browser, not IE.

Thanks for noticing
0
 
LVL 23

Expert Comment

by:NVIT
Comment Utility
Question has been inactive over 14 days. Awarding points to Bill Prew
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now