2020-09-07から1日間の記事一覧

ExcelVBAからPowerShell(ps1)を実行

vba

' ************************************************** ' PowerShellの実行(Execコマンド使用バージョン) ' ************************************************** Private Function ExecPowerShell(cmdStr As String) As String ' WshShellオブジェクト D…

powershellでメッセージボックス

# アセンブリの読み込み Add-Type -Assembly System.Windows.Forms # メッセージボックスの表示 [System.Windows.Forms.MessageBox]::Show("ここにメッセージ", "タイトル") ネタ元 https://letspowershell.blogspot.com/2015/06/powershellmessagebox.html

powershellの例外

普通にtry-catch https://qiita.com/NakaD/items/6979223ef9e6560d047c