|
Posted by shimmyshack on 05/06/07 23:53
On May 6, 3:24 pm, ashore <shor...@gmail.com> wrote:
> Under Win32/Vista, PHP 5, I have a batch of files to convert and I'm
> trying to script that in PHP.
>
> The line below fails silently - while the hand-entered version (sans
> the escapes of course) works correctly. I've tried system() and added
> an output parameter to the exec() call, but the silence remains.
>
> exec ("C:\\Program Files\\FWTools\\ogr2ogr-f \"MapInfo File\" f:\
> \out2.mif f:\\tgr24001\\tgr24001cty00.shp");
>
> Ideas on how to troubleshoot this are most welcome. --AS
I suppose I should add that you can change working directory uisng
chdir() to the dir of the executable, before calling it. This might
solve some issues with very badly written executables or batch files,
which expect a certain working directory.
[Back to original message]
|