Solved

Win 10 Using IE vs Edge from CMD batch file

Posted on 2016-07-26
7
61 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 56

Accepted Solution

by:
Bill Prew earned 500 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 56

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 56

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

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!

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

626 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