Duplicate: http://stackoverflow.com/questions/240171/launching-a-application-exe-from-c/240189#240189
Hi folks,
i have a free command line tool called FW Tools. Works great. Here is a sample line i enter in the console window :-
ogr2ogr -f "ESRI Shapefile" -a_srs "EPSG:26986" -t_srs "EPSG:4326"
towns_geodetic.shp TOWNSSURVEY_POLY.shp
I wish to change the last to arguments, based on some list i dynamically generate (i use Linq-to-Filesystem and grab all the filenames) and then call this program 'n' times.
I don't care about the output.
Can this be done?
This is all under the .NET environment btw.
EDIT
Is there also any way to make sure the code waits for the process to finish?