Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invalid char set error when trying to batch convert files
#3
Nope. It seems the warning may be benign though. I thought the warning was what was causing my script to hang, but that wasn't it. Turns out, it didn't like the single quotes, which I was using because escaping the double quotes didn't appear to be working. But what was actually happening was %%i evaluates to a path that contains \ which needed to be escaped. Not sure how to do that, so I just echoed all the file paths into a file, did a find replace on \ to \\, and did

Code:
for /f "tokens=*" %%i in (files.txt) do (
  "C:\Program Files\GIMP 2\bin\gimp-console-2.10.exe" -c -d -i -b "(myconvert \"%%i\" \"%%i.HEIC\")" -b "(gimp-quit 0)"
 )

which seems to run now.
Reply


Messages In This Thread
RE: Invalid char set error when trying to batch convert files - by Zentian - 05-30-2022, 12:51 AM

Forum Jump: