Page 1 of 1

Nconvert and Visual Basic

Posted: Fri Jan 09, 2004 7:00 pm
by ralph
Is it possible to use nconvert in visual basic with the shell-command

i'd tried to use the following statement, but it did not work

x=shell(d:\nconvert.exe -o file_out.jpg file_in.jpg)

any suggestions?

Posted: Fri Jan 09, 2004 7:13 pm
by helmut
I've just checked and the sample below works for me. Though the correct paths are an issue: If you do not specificy paths, I think the current dir, that is the directory where the running VB application resides in, will be used. To be on the save side make sure you specify valid paths for nconvert, input and output file.

Code: Select all

    Dim taskID As Double
    taskID = Shell("C:\Program Files\XnView\nconvert.exe -o D:\file_out.jpg D:\file_in.jpg")
Not sure in your case, but I recommend you to have a look at GFL SDK.

Posted: Sat Jan 10, 2004 7:39 am
by Guest
:D it works...

thanks a lot