Hi all ,
I have console application (C#) that convert pdf file to tiff
using the -format tiff *.pdf and it's work fine .
I take the same code and create window service running under xp services ,
and i get the error :
from StandardOutput.ReadToEnd() i get :
unable to open image `*.pdf': No such file or directory @ blob.c/OpenBlob/2440.
from StandardError.ReadToEnd(); i get :
unable to open image `*.pdf': Invalid argument @ blob.c/OpenBlob/2440.
what can be the problem ?...
Thanks.
Runing ImageMagic under services with window services .net
Re: Runing ImageMagic under services with window services .net
Found it ,
When running as console application the Process StartInfo.Arguments :
" -format tiff *.pdf " work fine.
but when running as service StartInfo.Arguments
must have " -format tiff C:\temp\Input\*.pdf "
even though my exe file located at the same directory with mogrify.exe and convert.exe.
When running as console application the Process StartInfo.Arguments :
" -format tiff *.pdf " work fine.
but when running as service StartInfo.Arguments
must have " -format tiff C:\temp\Input\*.pdf "
even though my exe file located at the same directory with mogrify.exe and convert.exe.