Page 1 of 1
runing program and command from "RUN"
Posted: Sat Oct 04, 2008 1:20 pm
by jesperfj
I'm trying run Nconvert with VBA and automate a series of commands.
Can I run something like this at once?
"C:\Program Files\XnView\nconvert\nconvert.exe" -out jpeg -resize 200 -ratio -sharpen 12 -scaling -rflag orient -rtype lanczos "C:\Program Files\XnView\nconvert\1.tif" "C:\Program Files\XnView\nconvert\2.tif"
or do I have to use run > cmd.exe > open Nconvert.exe and then type the command?
Posted: Sat Oct 04, 2008 1:52 pm
by jesperfj
I've created a bat-file using XnView with this content:
C:\Program Files\XnView\nconvert\nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o C:\\%%.jpg -ratio -rtype lanczos -rflag orient -resize 200 0 -sharpen 12 "C:\Program Files\XnView\nconvert\111.tif" "C:\Program Files\XnView\nconvert\222.tif"
but nothing seems to happen when I run it.
Should I be able to run the bat just like that?
Many thanks for any help.
Re: runing program and command from "RUN"
Posted: Sat Oct 04, 2008 1:53 pm
by xnview
jesperfj wrote:
"C:\Program Files\XnView\nconvert\nconvert.exe" -out jpeg -resize 200 -ratio -sharpen 12 -scaling -rflag orient -rtype lanczos "C:\Program Files\XnView\nconvert\1.tif" "C:\Program Files\XnView\nconvert\2.tif"
Yes you can
Posted: Sat Oct 04, 2008 2:10 pm
by jesperfj
I'm trying something simple to get it to work.
Simply running this bat-file:
C:\Program Files\XnView\nconvert\nconvert.exe -out jpeg "C:\1.tif"
should convert til file, I believe.
The cmd-window flashes briefly.
What am I doing wrong?
Posted: Sat Oct 04, 2008 5:54 pm
by jesperfj
ok got it working by doing this in the bat-file:
cd\
cd program files
cd xnview
cd nconvert
nconvert.exe -out jpeg "C:\1.tif"

Posted: Mon Oct 06, 2008 5:52 am
by xnview
Try
"C:\Program Files\XnView\nconvert\nconvert.exe" -out jpeg "C:\1.tif"