S
S
Spark1082020-10-25 21:38:18
Windows
Spark108, 2020-10-25 21:38:18

How to make your path to a directory in windows explorer?

The essence of the issue is the idea of ​​creating your own addressing to files both from your own application in C #, and the possibility of using this addressing by other applications in Windows.

For example, there is the following directory:
C:\Windows\system32
As you can see, if you navigate through it in the same Windows Explorer, the system32.

I want to get the following:
myprotocol://system32
What of this: we have a protocol myprotocolwhose root is the location C:\Windowsand the transition to the above address should also get into the folder, respectively system32, but again not redirect to the original url, but what would be left in the address bar myprotocol://system32.

I was looking for articles on this subject, but sometimes I’m a bad bloodhound, especially if you don’t know what to push off from. So I found that you can insert your protocol into the registry and, at its request, the program will be launched. But I don't understand how to do the above.

For example, it file:///c:\works approximately the way I need it, but it redirects to the folder specified for it. That is, it is a link.

UPD #1:
This is exactly how I need it to work ftp://in Explorer. It connects to the FTP server and displays the files on its own.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-10-26
@spark108

1. Why
2. https://stackoverflow.com/questions/43234988/custo...
3. https://docs.microsoft.com/en-us/windows/win32/sea...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question