
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
VBAからPowerShellを起動し、任意コマンドを実行する - Qiita
Option Explicit Sub TestPs() Dim sPath As String Dim dPath As String Dim psCmd As String Dim hoge... Option Explicit Sub TestPs() Dim sPath As String Dim dPath As String Dim psCmd As String Dim hoge As Variant sPath = "C:\work\hoge.txt" dPath = Replace(sPath, "hoge", "huga") psCmd = "Copy-Item " & sPath & " " & dPath hoge = runPshell(psCmd, 0, True) End Sub コメント 参照設定をユーザに操作させたくなかったのでCreateObject("WScript.Shell")を使っています。 変数intVsblでPowerShell画面の表示(1)/非表示(0)を選択できます。 変数waitFlgでPowerShell実行完了を待つ(True)
2021/07/26 リンク