Windows ã®ã³ãã³ãããã³ãã CMD ã«ããã¦ãç°å¢å¤æ°ã«é 延å±éã¨ãããã®ããããã¨ãç¥ã£ã¦ã人ãå¤ãã¨æãã CMD ã¯ãã³ãã³ããï¼ã¹ãã¼ãã¡ã³ãã¥ã¤å®è¡ãããããIF æã FOR æã®ä¸ã§ç°å¢å¤æ°ãæ±ãã¨ãå¬ãããªããã¨ãèµ·ããããã¨ãã°ã SET a=1 SET b=1 IF "%a%"=="1" ( SET b=2 ECHO a=%a%, b=%b% â¦â¦(x) ) ELSE ( ECHO a=%a%, b=%b% ) ECHO a=%a%, b=%b%ãã®ãããªãããã¹ã¯ãªãããå®è¡ããã¨ã 1: SET a=1 2: SET b=1 3: IF "1"=="1" ( : SET b=2 : ECHO a=1, b=1 â¦â¦(x) : ) ELSE ( : ECHO a=1, b=1 : ) 4: ECHO a=1, b=2ã¨ããã¹ãã¼ãã¡ã³ãã«å±éãããããã®ãã¨
{{#tags}}- {{label}}
{{/tags}}