How can I open a magnet link in a console app?
-
31-05-2021 - |
Frage
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".
Lösung
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");
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow