Calling dll from DOS batch?

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
Fluff

Calling dll from DOS batch?

Post by Fluff »

Hi,

I have DVDStyler installed on windows. As part of the installation comes the dll:

cygMagick-6.dll

Now, I'm writing a DOS batch file to automate the generation of a DVD menu. Is there a way for me to reuse my existing cygMagick-6.dll and call it from the command line/DOS batch file without downloading the whole ImageMagic static installation?

Kind Regards,
Fluff.
Fluff

Re: Calling dll from DOS batch?

Post by Fluff »

Maybe I should make myself a bit clearer.

I already have the following dll's in C:\Program Files\DVDStyler\dvdauthor

cygbz2-1.dll
cygcygipc-2.dll
cygdpstk-1.dll
cygfreetype-6.dll
cygiconv-2.dll
cygjbig1.dll
cygjpeg-62.dll
cygjpeg6b.dll
cygMagick-6.dll
cygpng12.dll
cygtiff4.dll
cygwin1.dll
cygX11-6.dll
cygXext-6.dll
cygxml2-2.dll
cygz.dll


In my DOS batch file I just want to call ImageMagicks "convert" command to do some simple image manipulation.

Is it possible to create a wrapper called "convert.exe" that calls the appropriate dll ?

As I stated before, I don't want to use the static "convert.exe" provided in ImageMagick's static installation because it's over 4.5 MB. I will be distributing the DOS batch file to other people with DVDStyler installed so I don't want to include 4.5 MB's of ImageMagick if they already have it.

I see that the "convert.exe" provided in the dynamic installation is only 188 KB so I hope for something like that.

Sorry if I'm asking a daft question. I have no experience with dll's so I hope someone out there can give me a point in the right direction.

Thanks.
Fluff.
Post Reply