1
從PowerShell中打開一個典型的URL像http://www.google.com
,我們可以使用類似:如何使用powershell打開一個URL,如「imacros:// run /?m = my_saved_macro.iim」?
start http://www.google.com
然而,自動化imacros,有時我需要打開網址一樣imacros://run/?m=my_saved_macro.iim
。如果你想了解詳情,你可以去here。
當我嘗試了PowerShell代碼start imacros://run/?m=my_saved_macro.iim
,我得到了以下錯誤:
start : This command cannot be run due to the error: Unknown error (0x80041002).
At c:\temp\test.ps1:51 char:5
+ start "imacros://run/?m=$macro_file_name";
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
我想知道如何從PowerShell中的默認瀏覽器打開這種URL的。
謝謝。