Shell return codes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
stevenb46
Posts: 40
Joined: 2014-08-20T08:47:18-07:00
Authentication code: 6789

Shell return codes

Post by stevenb46 »

I'm using:

Code: Select all

str_convFirst = "convert -density 960 -units PixelsPerInch -colorspace sRGB g54w08.eps -flatten -scale 10% -weight Bolder g54w08.png"
l_try = Shell(str_convFirst, vbHide) 'run line to generate png
in VB6

It completes, and renders a file. I'm getting back 6600 for l_try, what does this mean?

How do I know it completed or if it failed? Anyway to determine that based on return value?

Using Windows 7 - 64bit
IM 6.8.9 Q16
Last edited by stevenb46 on 2014-11-14T08:14:43-07:00, edited 1 time in total.
stevenb46
Posts: 40
Joined: 2014-08-20T08:47:18-07:00
Authentication code: 6789

Re: Shell return codes

Post by stevenb46 »

Sorry, using VB6
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Shell return codes

Post by snibgo »

Your questions are about Visual Basic. Sorry, I don't know the answers. Microsoft documentation would seem the obvious place to go, eg http://msdn.microsoft.com/en-us/library ... 60%29.aspx
snibgo's IM pages: im.snibgo.com
Post Reply