A simple C# Windows application that reads a URL from an XML configuration file and opens it in the default browser. If no default browser is set, it falls back to Microsoft Edge.
- Windows 10/11 (Edge is included by default)
- .NET Framework 4.8 (already installed on Windows 10/11)
- A
config.xmlfile in the same directory as the executable
git clone https://github.com/frytzy/XmlUrlLauncher.git
cd XmlUrlLauncherWindows includes a C# compiler. Compile directly without installing anything:
# Navigate to project directory
cd C:\URLLauncher
# Find and use the built-in compiler
$csc = Get-ChildItem "C:\Windows\Microsoft.NET\Framework*\v4*\csc.exe" -Recurse -ErrorAction SilentlyContinue | Select-Object -Last 1 -ExpandProperty FullName
& $csc /target:winexe /out:URLLauncher.exe URLLauncher.csIf you have the .NET SDK installed:
dotnet build -c ReleaseOr publish as a standalone executable:
dotnet publish -c Release -r win-x64 --self-contained falseCreate a config.xml file in the same directory as URLLauncher.exe:
<Configuration>
<URL>https://www.example.com/</URL>
</Configuration>Important:
- The
<URL>tag must be capitalized - Both
config.xmlandURLLauncher.exemust be in the same folder
- Place
config.xmlandURLLauncher.exein the same directory - Run
URLLauncher.exe - The URL will open in your default browser (or Edge if no default is set)
- Reads the URL from
config.xmlin the executable's directory - Attempts to open the URL using the system's default browser
- If the default browser fails, automatically falls back to Microsoft Edge
- Displays error messages if configuration issues are detected
- This is a Windows-only application
- No console window appears when running (compiled as WinExe)
- Edge is guaranteed to be available on Windows 10/11 as a fallback
- The application uses .NET Framework 4.8 for maximum compatibility
This project is licensed under the MIT License.
MIT License
Copyright (c) 2025 frytzy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.