LoginSignup
9
7

More than 5 years have passed since last update.

Windows batでコマンドの結果を変数に格納

Posted at
FOR /F %%i in ('コマンド') do set 変数=%%i

Linuxみたく、`コマンド`でできないんだろうか。。。

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