Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Win 10 Using IE vs Edge from CMD batch file

Posted on 2016-07-26
7
Medium Priority
?
84 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
  • 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 58

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
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.

 
LVL 58

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 58

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

963 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