Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » Dotnet




 Page 1 of 1 [ 4 posts ] 



Author Message
 Post subject: help needed??
 Post Posted: Mon Oct 05, 2009 10:51 am 
Offline

Joined: Sat Feb 21, 2009 12:28 pm
Posts: 47
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


Top 
 Post subject: Re: help needed??
 Post Posted: Mon Oct 05, 2009 10:51 am 
Offline

Joined: Sat Feb 21, 2009 12:28 pm
Posts: 47
No one?


Top 
 Post subject: Re: help needed??
 Post Posted: Mon Oct 05, 2009 10:52 am 
Offline

Joined: Sat Feb 21, 2009 12:28 pm
Posts: 47
Solved myself.


Top 
 Post subject: Re: help needed??
 Post Posted: Mon Oct 05, 2009 10:53 am 
Offline

Joined: Sat Feb 21, 2009 12:28 pm
Posts: 47
This forum is for easy stuff not for hard stuff :)


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 4 posts ] 




Board index » Server Side Development » Dotnet


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron