今天因为程序需要运行一个EUR软件来打印条形码,必须在程序中调用cmd.exe来运行EUR软件附带的文本格式转换程序eurps.exe,在网上查了一下,调试成功。。。

下面是代码

 1net程序调用cmd.exe 运行程序protected void Bu_SmallBarcode_Click(object sender, EventArgs e)
 2
p.WaitForExit(); p.Close();
28net程序调用cmd.exe 运行程序            return p.StandardOutput.ReadToEnd();        //從輸出流取得命令執行結果
29net程序调用cmd.exe 运行程序
30net程序调用cmd.exe 运行程序        }


备用。。

相关文章: