Created
February 17, 2014 07:17
-
-
Save toshiyukino/9046133 to your computer and use it in GitHub Desktop.
コマンドプロンプト起動時に任意の環境変数を定義する方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem ホームフォルダに「userenv.txt」というファイルを作って | |
@rem 1行ずつ「変数名=値」で記入しておくと環境変数として取り込んでから | |
@rem コマンドプロンプトを起動する。batファイルならFor文は%を二つ続ける必要有 | |
@rem cmd.exe へのショートカットを作ってリンク先に下記のように記入 | |
@rem スタート⇒ファイル名を指定して実行でもOK | |
cmd.exe /K (FOR /F "eol=; " %i in (%HOMEDRIVE%%HOMEPATH%\userenv.txt) do @call set %i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment