Page 1 of 1

Calling dll from DOS batch?

Posted: 2007-02-20T09:59:02-07:00
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.

Re: Calling dll from DOS batch?

Posted: 2007-02-25T13:01:53-07:00
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.