Internet Explorer Command-line Switches
One of my first articles on Samanathon.com was Internet Explorer 7’s Kiosk Mode, and it is consistently in the top five most popular pages so I though I should cover some more of IE7 command-line switches!
How To
You can pass these by opening the Run dialog, add a space and the switch of your choice:
iexplore -k
The List
-k
Starts IE7 in kiosk mode. It will be full screen without the tool bar, address bar or status bar.
To exit, simply hit Alt+F4!
[URL]
You can enter a web address or even a local one. Although, if you’re going to enter a local address, just type the path directly!
Example:
iexplore http://samanathon.com
-extoff
Runs IE7 without any add-ons. You will get this warning:
All Internet Explorer add-ons, such as ActiveX controls or toolbars, are turned off. Some webpages might not display correctly.
This one can be used with with a URL:
iexplore http://samanathon.com -extoff
-nohome
Doesn’t display your home page. The browser’s tab will say “Connecting” for some reason, but it isn’t.
Kuribo Mario Hops For These Related Posts:
Another great tip from Saman.
I find myself looking forward to your tips.
Great! I have some fancy Windows tips coming soon!
Err… I’ll just stick with my Firefox.
really like the “-extoff” that will come in handy. Since I am a windows developer, wont be getting away from IE anytime soon.
Unfortunality, me too
iexplore -k
I will use this on my application demos from now on. Don’t forget that Alt & F4 will get you out of kiosk mode.
Got point Nathan, I mention that in my Internet Explorer 7’s Kiosk Mode article, but forget to here!
Hi,
Is it possible to disable alt+f4 ?
Other question: when i run iexplore -k from a logon .bat script i still have the three small butons on the right to close/reduce/restaure teh window. Allthough the tite bar is absent.
Any idea where they come from?
ALT-F4 is application specific - an application can be coded to use or ignore it - that being said, I haven’t been able to find a way to globally disable it.
Thanks for the tips guys. As someone said I will just stick with firefox also. It seem Internet explorer is more pain than pleasure.
U can easily disable ALT+F4 with autoit. Simply make a script with an “ALT+F4″ hotkey, that leads to a function that does nothing!.
And make it repeat itself.
Easy as pie!
I would give give u the entire code, but since I mada this more than a year go, I don’t have it anymore…
Hi,
how can I remove the print dialog using IExplorer ???
I need something like print.always_print_silent for Firefox, but I need to solve the same problem using IExplorer
Thank you very much
Antonio
Looking to open IE in a specific resolution size (ie, window size 800×600)….find it hard to believe that you can tell IE the size to open using javascript but no way to do it via command line .
Asking because I need the window to open in a specific size so automated testing scripts can be run on different machines.
I guess I could work around it by navigating to a page that opens another window at a specific size but seems like a lot of steps to do something that I’d think would be supported already.
Thanks
Frank
Has anyone seen the “-Embedding” switch?
When ever i start my IE 7, it always runs with add-ons diabled.Tools\Manage Add-ond options is greayed out…can you help me out ?
Hi,
I am looking for Print silent mode option in Internet Explorer 6.0 or 7.0 , How to enable this option. Please help me
Thanks