How to open Application with custom URL in window c#.

Опубликовано: 10 Апрель 2026
на канале: IT Core Soft
288
4

download code from link: https://github.com/hamza3344/customap...

My fiverr link: https://www.fiverr.com/hamzakhalid178
My Upwork Profile: https://www.upwork.com/freelancers/~0...

Whatsapp Number: +923338672398
contact me on [email protected] for custom software's.
Please share and like the video and subscribe the channel
If any question comment below

for supporting the channel
make a honeygain account by my referral link and make a passive income for me and you.

https://r.honeygain.me/HAMZA16262

code:

using System.Reflection;
using Microsoft.Win32;

public void createcustomlink()
{
string assemblyApplication=Assembly.GetExecutingAssembly().Location;
using(RegistryKey key=Registry.ClassesRoot.CreateSubKey("Application1"))
{
key.SetValue(string.Empty, "URL:CustomApplication");
key.SetValue("URL Protocol", string.Empty);
using(RegistryKey shellkey=key.CreateSubKey("shell"))
using(RegistryKey openkey=shellkey.CreateSubKey("open"))
using(RegistryKey coomandkey=openkey.CreateSubKey("command"))
{
coomandkey.SetValue(string.Empty, $"\"{assemblyApplication}\" \"%1\"");
}
}
}