answermyquery.com
http://www.answermyquery.com/

help needed??
http://www.answermyquery.com/viewtopic.php?f=2&t=1144
Page 1 of 1

Author:  fabdan [ Mon Oct 05, 2009 10:51 am ]
Post subject:  help needed??

Hi all!!

I was lukin 4 a programatic path 2 batch resize images 4m a folder usin
irfanview command line tool (i_view.exe)

The command works do generally in the dos command prompt.however w en I tried 2
creare a .NET C# console application 2 run i_view32.exe as a process, I was gettin Win32 issue

Any clue how could I programmatically use da irfanview 2 manipulate the images
in a batch?

Here comes ma code:

Code:
     ProcessStartInfo procInfo = new ProcessStartInfo(@"C:\Inetpub\wwwroot\xyz\Bin\i_view32.exe");
     procInfo.WindowStyle = ProcessWindowStyle.Minimized;

     procInfo.UseShellExecute = true;
     Process.Start(procInfo); <--- Gives error saying i_view32.exe is NOT a win 32 application
     char chrQuote = '"';
     procInfo.Arguments = @"C:\IrfanView\raw\*.*" + chrQuote.ToString() + " /resize=(500,500) /resample /sharpen=20 /jpgq=" + QUALITY + " /aspectratio /convert=" + chrQuote.ToString() + "C:\\IrfanViewMagic\\test\\*.jpg" + chrQuote.ToString();

     Process.Start(procInfo);


I am gettin an exception 4m Process.Start(procInfo); <--- Gives the error
sayin ivew.exe was NOT a win 32 application

Any clue or any other suggestions?

Thanks

Author:  fabdan [ Mon Oct 05, 2009 10:51 am ]
Post subject:  Re: help needed??

No one?

Author:  fabdan [ Mon Oct 05, 2009 10:52 am ]
Post subject:  Re: help needed??

Solved myself.

Author:  fabdan [ Mon Oct 05, 2009 10:53 am ]
Post subject:  Re: help needed??

This forum is for easy stuff not for hard stuff :)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/