Process[] p = Process.GetProcesses();
            foreach (Process pp in p)
            {
                if (pp.ProcessName == "海悅學院TradeVideoBox")
                    pp.Kill();

Roy Lai 發表在 痞客邦 留言(0) 人氣()

System.Diagnostics.Process.Start("http://www.shineingshare.com/");

----------------------------------------------------------------------------------------------------------------

ShineingShare

在台灣的高速雲端
完全免費

Roy Lai 發表在 痞客邦 留言(0) 人氣()

System.Diagnostics.Process.Start("notepad.exe");

----------------------------------------------------------------------------------------------------------------

ShineingShare

在台灣的高速雲端
完全免費

Roy Lai 發表在 痞客邦 留言(0) 人氣()

button1.BackColor = Color.Transparent;

----------------------------------------------------------------------------------------------------------------

ShineingShare

在台灣的高速雲端
完全免費

Roy Lai 發表在 痞客邦 留言(0) 人氣()

Form2 f2 = new Form2();
f2.Show();

----------------------------------------------------------------------------------------------------------------

ShineingShare

Roy Lai 發表在 痞客邦 留言(0) 人氣()

public static string GetRandomString4(int length)
{
    var str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    var next = new Random();
    var builder = new StringBuilder();

Roy Lai 發表在 痞客邦 留言(0) 人氣()

using (StreamWriter sw = File.AppendText(@TEST.TXT))
{
sw.WriteLine("XXX");
}

Roy Lai 發表在 痞客邦 留言(0) 人氣()

using (StreamReader sr = File.OpenText(@TEST.TXT))
{
string s = "";
while ((s = sr.ReadLine()) != null)
{

Roy Lai 發表在 痞客邦 留言(0) 人氣()

System.Management.ObjectQuery MyQuery=new ObjectQuery("SELECT * FROM Win32_OperatingSystem");
System.Management.ManagementScope MyScope=new ManagementScope();
ManagementObjectSearcher MySearch=new ManagementObjectSearcher(MyScope,MyQuery);
ManagementObjectCollection MyCollection=MySearch.Get();
string StrInfo="";

Roy Lai 發表在 痞客邦 留言(0) 人氣()

using System.Diagnostics;
string s = "";
System.Int32 processid;
Process process;
//Retrieve the additional information about a specific process

Roy Lai 發表在 痞客邦 留言(0) 人氣()

using System.Management;
string st = "";
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)

Roy Lai 發表在 痞客邦 留言(0) 人氣()

using System.Management;
ManagementObjectSearcher my = new ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard");
foreach (ManagementObject share in my.Get())
{
string a = "主機板製造商:" + share["Manufacturer"].ToString();

Roy Lai 發表在 痞客邦 留言(0) 人氣()

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。