Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I updated windows registry to allow "docx" and "doc" file types in "AutoOpenFileTypes" and added my local server url to "AutoOpenAllowedForURLs" so that my MS Word file can be download/opened from Edge browser directly. Now Word files can be downloaded/opened directly as expected, but the it also shows "Downloads" message at the same time as you can see in the attached image. Is there anything we can do to stop showing this message in Edge? Thanks.
Developing and testing features or extensions for Microsoft Edge
Thank you very much for your help. I put a static Word file at "http://localhost:9080/ebb/jsps/myDocument.doc" then tried your sample code using "wordopen:http://localhost:9080/ebb/jsps/myDocument.doc". It gives me a popup warning message "This site is trying to open openword.bat A website wants to open this application" first then launches an empty Word instance. We can't have that warning message and it looks like the bat file can't read file name correctly.
If I just use the url without "wordopen" then the document can be downloaded and opened.
Is there anything you can do to hide that warning message and also make the actual Word file open instead of an empty Word instance?
Dear @Zhu, Ligong,
Thank you for your patience and for following up. I apologize for the broken link in the earlier response. Below is a concise, step-by-step guide to set up a Custom Protocol Handler to open Word files directly from your local server in Edge, bypassing the "Downloads" notification using a custom URI scheme (e.g., "wordopen:").
Important: Back up your registry (File > Export in Registry Editor) before proceeding, as administrative privileges are required.
@echo off
set uri=%~1
set url=%uri:wordopen:=%
"C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" "%url%"
WINWORD.EXE path with your actual Word path (verify in File Explorer).C:\Scripts\openword.bat (ensure .bat extension).regedit as administrator (Windows + R, type regedit).HKEY_CLASSES_ROOT.wordopen.(Default) to URL:WordOpen Protocol.URL Protocol with an empty value.wordopen\shell\open\command.command\(Default) to: "C:\Scripts\openword.bat" "%1".<a href="http://yourlocalserver/file.docx"> to <a href="wordopen:http://yourlocalserver/file.docx">.For more details, refer to: Register an application to handle a custom protocol.
We hope this resolves your issue seamlessly! If you encounter any challenges or have questions, please let us know, and we’ll assist promptly. Your feedback is invaluable to ensure we’ve fully addressed your needs.
Dear @Zhu, Ligong,
Thank you for contacting Microsoft Edge Development regarding the "Downloads" notification appearing when auto-opening Word files. We appreciate you sharing the details of your configuration, including the updates to AutoOpenFileTypes and AutoOpenAllowedForURLs in the Windows Registry.
This notification is a built-in feature of Edge to inform users of download activity, even when files are set to auto-open immediately. Currently, there isn’t a setting to suppress this bar specifically for auto-opening files, but we can help you disable it globally with the following options:
regedit), navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge, create a new DWORD value named DownloadNotificationEnabled, and set it to 0. Restart Edge afterward.These changes will hide the notification for all downloads. Please ensure you back up your registry before making edits, and let us know if you need guidance. We’re committed to improving your experience, and if this doesn’t fully meet your needs, we encourage you to submit feedback via Alt + Shift + I in Edge—we’ll consider it for future updates!
If you encounter any issues or need further assistance, feel free to reply. If you find this response helpful, we’d appreciate your feedback—please let us know!
I'm not very good with doing things like that, I'm still just trying to learn about the phone and I keep running into problems. Would you help me with this issue?