【バッチファイル】変数を増やし指定の回数処理を繰り返す 2023-07-22 08:59:22 | コマンドプロンプト 変数に1を入れて1回起動ごとに1を増やし20まで繰り返す for /l %%n in (1,1,20) do ( echo n = %%n)PAUSE