The call of C:\Windows\system32\cmd.exe
is not necessary.
Try this:
cmd = 'ogr2ogr -s_srs "EPSG:4326" -t_srs "EPSG:3006" out_sweref99tm.shp in_wgs84.shp';
system(['d: && cd d:\FWTools2.4.7\ && setfw.bat ',cmd])
or if you actually need to pass your parameters after the first call and not with:
system(['d: && cd d:\FWTools2.4.7\ && setfw.bat && ',cmd])
Maybe you can post a screenshot of how it looks like when you do it manually.
requested explanation:
The &&
operator is implicating that the following command is executed "in the next line". It's like you press enter
in the cmd window and then you have to type the next command.
For example cd d:\FWTools2.4.7\
does never work directly, as the default is usually "c:". So firstly have to type d:
and in the next step you change to your folder cd d:\FWTools2.4.7\