Page 1 of 1

how to deal with space in folder name?

Posted: 2019-06-16T13:12:09-07:00
by ChristinaChristina
I am doing a batch change of files, but am now stuck as a couple of the folder names in the path contains a space. I have tried with quotation marks, a slash before the space, etc., but nothing seems to work. Any ideas?

This is the code I am trying to run:

mogrify -strip -colorspace sRGB -format png -alpha set -fuzz 10% -transparent white -fill Red -opaque Black -path C:/Dropbox (Personal)/Scannade dokument/Epson/My messages/Test/Output/ *.jpg

Re: how to deal with space in folder name?

Posted: 2019-06-16T13:45:52-07:00
by snibgo
Please always state your platform. I assume it is Windows.

Windows directory separators are backslashes "\" not forward slashes "/".

If the directory or filename contain spaces, use double-quotes:

Code: Select all

-path "C:\Dropbox (Personal)\Scannade dokument\Epson\My messages\Test\Output\"

Re: how to deal with space in folder name?

Posted: 2019-06-16T23:58:51-07:00
by ChristinaChristina
Many thanks!