I have a batch file for converting images, the arguments are quotes, and the quotation strings inside the argument are escaped. However, I want to send the current path% CD% also as an argument ... but by doing this:
"C:\Program Files\GIMP 2\bin\gimp-2.8.exe" -i -b "(python-fu-watermark-folder RUN-INTERACTIVE \"%CD%\" \"%CD%_watermarked\" \"C:/Documents and Settings/Jan/Desktop/watermarking/customEffectsWatermark.png\")" -b "(gimp-quit 0)"
gives me an echo:
C:\Documents and Settings\Jan\Desktop\watermarking\tester>"C:\Program Files\GIMP2\bin\gimp-2.8.exe" -i -b "(python-fu-watermark-folder RUN-INTERACTIVE \"C:\Documents and Settings\Jan\Desktop\watermarking\tester\" \"C:\Documents and Settings\Jan\Desktop\watermarking\tester_watermarked\" \"C:/Documents and Settings/Jan/Desktop/watermarking/customEffectsWatermark.png\")" -b "(gimp-quit 0)"
which is nice, but the backslash from the directory is escape characters! so when I run the plugin I get a shielded directory (I don't want this):
WatermarkFolder-Warning: C:Documents and SettingsJanDesktopwatermarking ester WatermarkFolder-Warning: C:Documents and SettingsJanDesktopwatermarking ester_watermarked WatermarkFolder-Warning: files to be processed in total: 0
How can I not control the path, is there a way to escape the escape characters? Thank you Lode
source share