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
running CONVERT from Windows
- whugemann
- Posts: 289
- Joined: 2011-03-28T07:11:31-07:00
- Authentication code: 8675308
- Location: Münster, Germany 52°N,7.6°E
Re: running CONVERT from Windows
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.
Wolfgang Hugemann