0

I am getting a string from an API and I need to open this string using the standard windows notepad.

I tried:

await Launcher.LaunchUriAsync(new Uri(@"C:\Windows\System32\notepad.exe"));

But nothing happened at all.

  • Even if it worked, Notepad only opens files, not strings. – Anders Sep 08 '22 at 09:55
  • I understand it. The problem is that even an empty notepad does not open. And I said about the line in order to make it clear why I need it. But thanks anyway, maybe this information will be useful to someone someday. – Deathgar Vyathemskiy Sep 08 '22 at 11:35
  • I believe you asked this yesterday and it was closed as a duplicate. Please do not repost questions. The accepted answer on the linked question explains exactly why what you are trying to do won’t work – Jason Sep 08 '22 at 12:05
  • You read the essence of the question more carefully. It's not a duplicate, it's a completely different question. In that question, Launcher.LaunchUriAsync is the solution. And here I am looking for possible reasons that this method does not work. – Deathgar Vyathemskiy Sep 09 '22 at 11:28

0 Answers0