Since time immemorial, most web browsers have been able to open a local file if you ran the web-browser executable, for example just execute
iexplore.exe file:/c:/temp/file or via the IShellDocView interfaces. I am trying to do this from within my own program, in Windows 10, with Microsoft Edge, and am unaware of how to do it.
The executable appears to be completely undocumented, does not respond to /? or /help, and simply crashes no matter what I pass to it, and given that the path appears to be likely to change, is probably not the correct approach to invoke this executable directly:
Is there an API in Windows that can be invoked instead, that will open Edge, perhaps even if it is not the current default browser?
Mobilego download for windows 7. If it was the default browser, I believe I could just do what I want via Win32 shell-API
ShellExecute . I would like to be able to launch something in Edge even if I have set another browser as my default though, for the purpose of automating certain web-testing tasks.
Are there programmatic interfaces or APIs for Edge? For purposes of this question, let's say I want to write this in C, but this should be the same API no matter what language I'm using so I didn't tag this question C.
If there is no way to do it programmatically, is there a command line argument I could use and pass to a MicrosoftEdge or MicrosoftEdgeCP executable?
Warren P
Warren PWarren P
40.7k3434 gold badges154154 silver badges283283 bronze badges
5 Answers
This is currently not supported, but the team is evaluating it as an option. For the time being, the easiest way to open a resource in Edge is by using the SampsonSampson
microsoft-edge: protocol handler. For instance, you could run microsoft-edge:http://stackoverflow.com to open Stack Overflow in Edge.
228k6363 gold badges481481 silver badges536536 bronze badges
Here is how you can open a PDF for example, with Edge.
Add the following header at the top of your class:
Here is an example of how to make the call.
I think this will apply fine to other types of files as well.
Elletlar
2,00244 gold badges1818 silver badges2727 bronze badges
TempGuestTempGuest
Obtain tool from https://github.com/MicrosoftEdge/edge-launcher
MicrosoftEdgeLauncher file:///C:/Users/me/Documents/homepage.html
13.7k44 gold badges1616 silver badges4444 bronze badges
Herschelle42Herschelle42
This works on my system:
create a share and give yourself access
open in Microsoft Edge, as a simple example:file:////bookmark.html
you can get the hostname via the hostname Powershell command among other ways, you can see all the directories you are sharing by using file explorer, opening 'network', at your computer and you should see any shares you have established
not necessarily a deeply satisfying answer but works for what I needed.
Augie MattheissAugie Mattheiss
The following works for local files and also accepts queries (
? ) and fragments (# ) in the URI.
WinAPI / ShellAPI example on a local HTML file:
MA-MaddinMA-Maddin
5,11611 gold badge3737 silver badges4747 bronze badges
protected by Community♦Feb 3 at 23:09
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged windowswinapiwindows-10microsoft-edge or ask your own question.
Compatible with Windows 10, 8, 7, Vista, XP and 2000
Optional Offer for WinThruster by Solvusoft | EULA | Privacy Policy | Terms | Uninstall
Overview of MicrosoftEdgeCP.exeWhat Is MicrosoftEdgeCP.exe?
MicrosoftEdgeCP.exe is a type of EXE file associated with Windows 10 Operating System developed by Microsoft Corporation for the Windows Operating System. The latest known version of MicrosoftEdgeCP.exe is 11.0.10240.16384, which was produced for Windows. This EXE file carries a popularity rating of 1 stars and a security rating of 'UNKNOWN'.
What Are EXE Files?
EXE ('executable') files, such as MicrosoftEdgeCP.exe, are files that contain step-by-step instructions that a computer follows to carry out a function. When you 'double-click' an EXE file, your computer automatically executes these instructions designed by a software developer (eg. Microsoft Corporation) to run a program (eg. Windows 10 Operating System) on your PC.
Every software application on your PC uses an executable file - your web browser, word processor, spreadsheet program, etc. - making it one of the most useful kinds of files in the Windows operating system. Without executable files like MicrosoftEdgeCP.exe, you wouldn't be able to use any programs on your PC.
Why Do I Have EXE Errors?
Because of their usefulness and ubiquity, EXE files are commonly used as a method of delivery for virus / malware infection. Often, viruses will be disguised as a benign EXE file (such as MicrosoftEdgeCP.exe) and distributed through SPAM email or malicious websites, which can then infect your computer when executed (eg. when you double-click the EXE file).
In addition, viruses can infect, replace, or corrupt existing EXE files, which can then lead to error messages when Windows 10 Operating System or related programs are executed. Thus, any executable files that you download to your PC should be scanned for viruses before opening - even if you think it is from a reputable source.
When Do EXE Errors Occur?
EXE errors, such as those associated with MicrosoftEdgeCP.exe, most often occur during computer startup, program startup, or while trying to use a specific function in your program (eg. printing).
Common MicrosoftEdgeCP.exe Error MessagesMicrosoft Edge File Location Windows 10
The most common MicrosoftEdgeCP.exe errors that can appear on a Windows-based computer are:
Ms Edge Executable File Location
Microsoft Edge Folder Location
These EXE error messages can appear during program installation, while a MicrosoftEdgeCP.exe-related software program (eg. Windows 10 Operating System) is running, during Windows startup or shutdown, or even during the installation of the Windows operating system. Keeping track of when and where your MicrosoftEdgeCP.exe error occurs is a critical piece of information in troubleshooting the problem.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |