Page 1 of 1

running CONVERT from Windows

Posted: 2012-03-19T02:57:18-07:00
by john2
If i use a DOS box (CMD) and run this

CONVERT c:\path\picture.png c:\path\picture.jpg

it converts the file as expected!

BUT

If I run the exact same command from Windows's Start>Run then nothing happens!!

Why does CONVERT care where I run it from?

I need a way to call CONVERT from Windows . I know I can use the COM bject but I need it this to be DOS based

TIA

Re: running CONVERT from Windows

Posted: 2012-03-19T03:44:03-07:00
by whugemann
It should make no difference which way you do it. (I have just checked that again.) It guess that you might have made a typo when using the Start box. A possible source of error is the setting of the PATH variable, as Convert is also a Windows system command, see http://www.imagemagick.org/Usage/windows/#convert_issue for details. There is nothing wrong with using the DOS command instead of the COM+ object and the code should work just the way you applied it.