You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.5 KiB
C#

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);
}
}
}
}