0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Stream Deckでbatファイルを実行するアクションを追加する

Last updated at Posted at 2025-03-07

Stream Deck でWindowsの.batファイルを実行するボタンを設定する方法のメモです。

「システム」> 「開く」アクションの設定項目の「App/ファイル」に以下を入力すれば完了です。

cmd.exe /c "バッチファイル.bat"

アクションを実行するとコマンドプロンプト画面が起動して指定したバッチが実行されます。

入力例

image.png

NOTE

cmd.exe /cの部分を書かずにバッチファイルパスを入力するだけでも実行できますが、そのときはコマンドプロンプト画面が開かれずバックグラウンドで実行されます。
私も実際に試したところタスクマネージャ上では確かにプロセスが起動したことを確認できました。
しかしその試したバッチで意図した処理は正常に行われませんでした。どうやらファイルのパスに依存する処理などはうまく動かないようです。
上記のようにcmd.exe /cの引数に渡すようにすると正常に実行することができました。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?