[Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

Replacing Download Dialog in Internet Explorer


I have for long time now, wanted to find a way to replace the Internet Explorer download dialog with my own dialog.

The reason is, that I need to create a system, where the user is only able to download to a specific folder.

Does anyone have any clue on how to accomplish this with .NET? (or VB6)

Thanks in advance,

  • 2
1 Solution

If you want user's not to be able to change the Default Download Directory

Start Regedit
Go to HKEY_USERS \ .DEFAULT \ Software \ Policies \ Microsoft \ Internet Explorer \ Restrictions
Create a DWORD value called NoSelectDownloadDir
Give it a value of 1

Old code, not sure if it will still work

BodekaerAuthor Commented:
How do I then define the default download directory?

And usually it is still possible to just type "C:\" in the download dialog.
The problem you have is that the dialog box is part of the IE program, to add your own you would need to write your own browser (simpler than it first appears as there is a web control in vb.net) then redeploy it.

The other alternative is to use something like Resource Hacker to amend the dialog box in whichever DLL in IE that it resides.  http://bink.nu/Article2728.bink

You may be ok then redeploying your hacked resource file to the other machines you want this to work on.  Although you will have problems with even minor releases of IE.

I had a quick look through gpedit.msc (start run gpedit.msc) because I thought this may be a common requirement in schools and suchlike but couldn't see anything that would accomplish this.  Although there are a number of other security features you may find useful.

The other thing is even if you do change the dialog box there is still the right click >> save as menu in the actual browser itself.  

Did you try the NoSelectDownloadDir?

References :

Any more details on what the scenario is?

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now