2016 May 17, 5:11
Thanks
@elmlang for the most useful error message I've ever seen
2016 Apr 28, 7:21 2016 Apr 28, 4:14 2016 Apr 28, 4:10 2016 Apr 26, 4:07 2016 Apr 26, 4:03 2016 Apr 25, 7:05 2016 Apr 8, 4:52 2016 Mar 31, 10:12
You can call WinRT APIs from PowerShell. Here's a short example using the WinRT Launcher API:
[Windows.System.Launcher,Windows.System,ContentType=WindowsRuntime]
$uri = New-Object System.Uri "http://example.com/"
[Windows.System.Launcher]::LaunchUriAsync($uri)
Note
that like using WinRT in .NET, you use the System.Uri .NET class instead of the Windows.Foundation.Uri WinRT class which is not projected and under the covers the system will convert the System.Uri
to a Windows.Foundation.Uri.
2016 Feb 23, 9:19 2016 Feb 20, 2:10 2016 Feb 20, 1:40 2016 Feb 20, 1:22 2016 Feb 17, 3:30 2016 Feb 17, 1:07