I run the following in Windows 10 command line;
convert file.png %t-test.png
convert file.png '%t-test.png'
And I get the following files;
%t-test.png
'%t-test.png'
How can I have the expected file-test.png
be properly escaped and generated?
Update
Tried some others per @DavidPostill's suggestions;
>convert file.png '\%t-test.png'
convert.exe: unable to open image `'\%t-test.png'': No such file or directory @ error/blob.c/OpenBlob/2702.
convert.exe: WriteBlob Failed `'\%t-test.png'' @ error/png.c/MagickPNGErrorHandler/1630.
Also, both of the following result in '%t-test.png'
being written;
convert file.png '%%t-test.png'
convert file.png '^%t-test.png'
convert
program you are running? What is this%t
you are referring to?%t
?convert file.png '\%t-test.png'