日期:2014-05-18  浏览次数:20642 次

如何用cmd 调用 kmlconverter.exe "Zeichnung1.dxf" "C:\\dev\\test1.kml", 不懂 ,在线等!!!
"Zeichnung1.dxf" 是InputFile,文件在bin/debug中 "C:\\dev\\test1.kml" 是outputFile,

就是说在cmd命令行输入kmlconverter.exe,外加两个参数,输入文件夹地址 和 输出文件夹地址 然后就能运行程序,谢谢!

------解决方案--------------------
Process proc = new Process();
proc.StartInfo.FileName = @"C:\kmlconverter.exe"; //kmlconverter.exe的路径
proc.StartInfo.Arguments = "'Zeichnung1.dxf' 'C:\\dev\\test1.kml'";
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
proc.Start();
proc.WaitForExit();