V
V
Vladimir Maltsev2013-01-21 18:12:54
Delphi
Vladimir Maltsev, 2013-01-21 18:12:54

Imagemagick runtime error when specifying Cyrillic directory in CMD

I don't know what to do, team

convert -resize 500 -quality 100 X:\123\2\Новая папка\0.jpg X:\123\2\Новая папка\0.JPG

Performed in
ShellExecute(Handle, nil, 'cmd.exe', PChar('/K '+ ('convert -resize 500 -quality 100 X:\123\2\Новая папка\0.jpg X:\123\2\Новая папка\0.JPG') ), nil, SW_SHOW);

writes an error in CMD
image
By executing this command directly in CMD, the same error takes off, tell me where to dig ((

Answer the question

In order to leave comments, you need to log in

4 answer(s)
3
3vi1_0n3, 2013-01-21
@3vi1_0n3

Running chcp before running your command is not an option.
Rather, you need something like WideCharToMultiByte () to convert parameters

P
pasha_golub, 2013-01-21
@pasha_golub

I suggest not to use Cyrillic in file names.

N
Nikolai Turnaviotov, 2013-01-21
@foxmuldercp

And what. To you, actually from a script it is necessary except for resize?
on powershell/c#, the utility with the resize you need is written very quickly. I can give my
resizer (already ready, give it away) at the same time tell me what to finish :)
I wanted to resize my entire photo stream in 800x600 and put it somewhere in pikasu, for example

L
lubezniy, 2013-01-21
@lubezniy

But what if you enclose long Russian-language names (you can also others too) in quotation marks?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question