回答編集履歴
2
追記
answer
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
`<=`はexiftoolの[仕様](https://exiftool.org/mistakes.html#M5)なのですね
|
2
2
|
コマンドプロンプトおよびバッチファイル内でエスケープするには
|
3
3
|
`exiftool img.jpg -comment^<=hoge.txt`
|
4
|
-
となるでしょう。
|
4
|
+
となるでしょう。
|
5
|
+
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
**追記**
|
10
|
+
|
11
|
+
[ドキュメント](https://exiftool.org/index.html#writing)を読むと
|
12
|
+
> Quotes are required around VALUE if it contains spaces or other special characters, and around the whole argument if the '<=' syntax is used (to prevent shell redirection).
|
13
|
+
|
14
|
+
`<=`を使うときは引数ごと引用符で囲めとなっています。
|
15
|
+
`"-comment<=hoge.txt"`でも大丈夫なのかもしれませんね
|
1
修正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
`<=`はexiftoolの[仕様](https://exiftool.org/mistakes.html#M5)なのですね
|
2
2
|
コマンドプロンプトおよびバッチファイル内でエスケープするには
|
3
|
-
`exiftool img.jpg -comment
|
3
|
+
`exiftool img.jpg -comment^<=hoge.txt`
|
4
4
|
となるでしょう。
|