私はasp.netを使用しています
これは私のコードです:
string cmd = "cmd";
string enter = "/c";
string exe =
" ogr2ogr -f \"GeoJSON\" -t_srs WGS84 " +
"C:\\Users\\subhi2\\Desktop\\WebSite9\\MapInfoFile\\aghat.json " +
"C:\\Users\\subhi2\\Desktop\\WebSite9\\MapInfoFile\\aghat.TAB";
try
{
Process p = new Process();
p.StartInfo = new ProcessStartInfo(cmd, enter + exe);
p.Start();
}
catch (Exception)
{
}
私はcmdで書き込もうとしています。そしてその働き。
ogr2ogr -f "GeoJSON" -t_srs WGS84 C:\Users\subhi2\Desktop\WebSite9\MapInfoFile\aghat.json C:\Users\subhi2\Desktop\WebSite9\MapInfoFile\aghat.TAB
どうすれば成功できますか?(おそらくフォルダまたはファイルのアクセス許可) ご意見はありますか ?
しかし、aspで動作しません(エラーなし)