How can I open a magnet link in a console app?
-
31-05-2021 - |
题
WebClient's openread don't seem to do the job, in what other way can I open magnet links? uTorrent is the default handler so I need the links "executed".
解决方案
You should be able to do this with Process.Start
. I know this works for HTTP URLs (launching them in your default Web browser), so if your system has magnet
URLs associated with uTorrent, then this should launch the URL in uTorrent.
Process.Start("magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C");
不隶属于 StackOverflow