|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Aucma.Core.SheetMetal.Common
|
|
|
|
|
{
|
|
|
|
|
public class CommHelper
|
|
|
|
|
{
|
|
|
|
|
#region 打开软盘
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 打开软盘
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static void OpenOsk()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Process proc = new Process();
|
|
|
|
|
proc.StartInfo.FileName = @"C:\Windows\System32\osk.exe";
|
|
|
|
|
proc.StartInfo.UseShellExecute = true;
|
|
|
|
|
proc.StartInfo.Verb = "runas";
|
|
|
|
|
proc.Start();
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|