Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When IE10 is set as my default browser, double-clicking an internet shortcut (*.url file) opens it in a new tab of the existing IE window. However, when it is not the default, every way of opening a *.url that I've tried brings up a new IE window per file. Is it possible to keep opening files in new tabs of the same IE window when it's not set as the default browser, and how?

What I've tried and it didn't work:

  • "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "C:\Dir1\file.url" (opens a new window every time)

  • C:\Windows\System32\rundll32.exe "C:\Windows\System32\ieframe.dll",OpenURL C:\Dir1\file.url (opens the default browser)

  • classexec "C:\Dir1\file.url" --class htmlFile (using ClassExec utility, opens a new window every time)

I use Windows 7 x64.

share|improve this question
up vote 2 down vote accepted

PowerShell, adapted from the Shay Levi's answer in Google Groups.

# Set BrowserNavConstants to open URL in new tab
# Full list of BrowserNavConstants:

$navOpenInNewTab = 0x800

# Get running Internet Explorer instances
$App = New-Object -ComObject shell.application

# Grab the last opened tab
$IE = $App.Windows() | Select-Object -Last 1

# Open link in the new tab nearby
$IE.navigate('', $navOpenInNewTab)

# Cleanup
'App', 'IE' | ForEach-Object {Remove-Variable $_ -Force}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.