using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace DxOpenWebFw { class Program { static void Main(string[] args) { Console.WriteLine("BuildVersion : 1.0"); Console.WriteLine("Computer Name : " + System.Environment.MachineName); string strUrl = DxOpenWebFw.Properties.Settings.Default.URL + "?COMPUTERNAME=" + System.Environment.MachineName; var prs = new ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"); prs.Arguments = strUrl; try { Process.Start(prs); } catch (System.ComponentModel.Win32Exception ex) { Process.Start(strUrl); } //// Console.WriteLine("Computer Name : " + DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER); //// string strPath = DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER; if (!string.IsNullOrEmpty(strPath) && System.IO.File.Exists(strPath)) { var printcenter = new ProcessStartInfo(strPath); string strComputerName = System.Environment.MachineName; string strJOBLIST = DxOpenWebFw.Properties.Settings.Default.JOBLIST; printcenter.Arguments = string.Format("LOCALSTART|JOB={0}|COM={1}", strJOBLIST, strComputerName); Process.Start(printcenter); } } } }