[postgis-users] Can't Call shp2pgsql.exe From "Run" or VB Program, only works with DOS prompt opened first

Daniel Blomberg services at gpsfiledepot.com
Sat May 31 14:49:04 PDT 2008


 Hi,

I am trying to run shp2pgsql.exe from inside a visual basic program I am
writing.  Its not working so i tested the command I am sending from the
"Run" dialog box in windows and it doesn't work.  The dos box pops up and
goes away too fast but here is what I caught:
http://www.gpsfiledepot.com/shp2pgsql.jpg

The command I am trying to run is:
"C:\gps_maps\postgis_sql\shp2pgsql.exe"
"C:\gps_maps\mississippi_topo\transportation\all_lines.shp" all_lines >
"C:\gps_maps\mississippi_topo\transportation\all_lines.sql"

If I run the command when the dos prompt is open it works. Ideas/help would
be much appreciated.

Thanks in advance
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080531/34ca67f6/attachment.html>


More information about the postgis-users mailing list