質問編集履歴
2
プログラムファイルの中の記号が全角だったため、変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,9 +28,9 @@
|
|
28
28
|
|
29
29
|
``` dos
|
30
30
|
|
31
|
-
set FILE=
|
31
|
+
set FILE="ファイルパス"
|
32
32
|
|
33
|
-
for /f
|
33
|
+
for /f "usebackq tokens=" %%a in (%FILE%) do (set line = %%a
|
34
34
|
|
35
35
|
echo line >> test.txt)
|
36
36
|
|
1
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Windows バッチ 中身を別ファイルに書き出し
|
1
|
+
Windows バッチ ファイル中身を別ファイルに書き出し
|
test
CHANGED
@@ -5,6 +5,14 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
Windowsバッチ(bat)で、テキストファイルやiniファイルの中身を別ファイルに書き出すプログラムを書いているのですが、うまくいきません。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
linuxでいう、
|
12
|
+
|
13
|
+
cat file.txt > test.txt
|
14
|
+
|
15
|
+
をやりたいです。
|
8
16
|
|
9
17
|
|
10
18
|
|