LoginSignup
0
1

More than 5 years have passed since last update.

【Windows】環境変数の設定・展開

Last updated at Posted at 2018-08-14

設定

set val=12345678
  • 「=」の前後にスペースを入れると、そのスペースも環境変数名の一部、あるいは値の一部として扱われる

  • setはコマンドプロンプトを開いている間のみ有効。永続化する場合は、setxを使用する。

展開

echo %val%
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