質問編集履歴
2
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
echo %str% >A.txt
|
32
32
|
|
33
|
-
for /f "tokens=1,2,3,4" %%a in (A.txt) do @echo %%a
|
33
|
+
for /f "tokens=1,2,3,4" %%a in (A.txt) do @echo %%a/%%b/%%c/%%d
|
34
34
|
|
35
35
|
```
|
36
36
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
```.dos
|
42
42
|
|
43
|
-
1,
|
43
|
+
1,/2/,/3
|
44
44
|
|
45
45
|
```
|
46
46
|
|
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
set str=1, 2 , 3 , 4
|
60
60
|
|
61
|
-
for /f "tokens=1,2,3,4" %%a in ('echo %str%') do @echo %%a
|
61
|
+
for /f "tokens=1,2,3,4" %%a in ('echo %str%') do @echo %%a/%%b/%%c/%%d
|
62
62
|
|
63
63
|
```
|
64
64
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
```.dos
|
70
70
|
|
71
|
-
1
|
71
|
+
1/2/3/4
|
72
72
|
|
73
73
|
```
|
74
74
|
|
1
参考にしたサイト
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,6 +74,14 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
+
### 参考にしたサイト
|
78
|
+
|
79
|
+
- [テキストファイルの内容を区切り文字でトークンに分解し繰り返し処理を使う(FOR)](https://www.javadrive.jp/command/bat/index10.html)
|
80
|
+
|
81
|
+
- [For - DOS コマンド一覧 - Programming Field](https://www.pg-fl.jp/program/dos/doscmd/for.htm)
|
82
|
+
|
83
|
+
|
84
|
+
|
77
85
|
|
78
86
|
|
79
87
|
### 環境
|