Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Win 10 Using IE vs Edge from CMD batch file

Posted on 2016-07-26
7
Medium Priority
?
71 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 Covney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 41730227
start "C:\Program Files\Internet Explorer\iexplore.exe" https://www.amazon.com/
exit
1
 
LVL 57

Accepted Solution

by:
Bill Prew earned 2000 total points (awarded by participants)
ID: 41730359
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
 
LVL 3

Author Comment

by:Ed Covney
ID: 41730541
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 57

Expert Comment

by:Bill Prew
ID: 41731038
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 57

Expert Comment

by:Bill Prew
ID: 41731043
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
 
LVL 3

Author Comment

by:Ed Covney
ID: 41731439
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 25

Expert Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

721 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