Solved

Win 10 Using IE vs Edge from CMD batch file

Posted on 2016-07-26
7
37 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 24

Expert Comment

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

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 2

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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 53

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 53

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 2

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 24

Expert Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

830 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