ProcessStartInfo
連續列印 BarCode 第二筆後 搶PORT 解決方法
string filename = "C:\\API\\QRCode.exe";
ProcessStartInfo Info = new ProcessStartInfo(filename);
Info.UseShellExecute = false;
Info.Arguments = _temp; '列印參數
Process process = new Process();
process.StartInfo = Info;
process.Start();
process.WaitForExit(); '等待直到工作結束 或 WaitForExit(1000) 1000 = 等 1秒
process.Dispose();
process.Close();