0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows10のバッチでファイル(ソフト)開く(パス直接指定とstart使用の違い)

Posted at

やり方(パス直接指定)

パス直接指定してソフト起動サンプル
"C:\Program Files (x86)\sakura\sakura.exe"

パス直接指定の場合、ソフトが終了するまで batのコマンドプロンプト画面が残る
(起動したソフトが終了すれば、batのコマンドプロンプト画面は連動して消える)

この『batのコマンドプロンプト画面』が Alt + Tab のリストに上がってしまい、 邪魔な場合もある。

そういう時はstartを使う。

やり方(start使用)

start ならソフト起動するとbatのコマンドプロンプト画面は閉じる。

startでソフト起動サンプル
start "" "C:\Program Files (x86)\sakura\sakura.exe"

バージョン

Windows 10 Pro 21H2 OSビルド 19044.1889

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?