引用 using System.Diagnostics;
ProcessStartInfo Info2 = new ProcessStartInfo();
Info2.FileName = "xxx.bat";//執行的檔案名稱
Info2.WorkingDirectory = @"d:\test";//檔案所在的目錄
Process.Start(Info2);//

level168 發表在 痞客邦 留言(1) 人氣()

指定DataSet
BindingSource BS1 = new BindingSource();
DataSet DS = new DataSet();
string selectCmd = "SELECT StockDate,StockID FROM StockMaster ORDER BY StockID";

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

EX:~~~app.config的內容~~~~
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <connectionStrings>
        <add name="ConnectionString1"
            connectionString="Data Source=??;Initial Catalog=hankuan;Persist Security Info=True;User ID=sa;Password=??"
            providerName="System.Data.SqlClient" />
    </connectionStrings>
</configuration>

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

要引用
using System.Net.Mail;
using System.Text;
程式如下~~

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

1
Blog Stats
⚠️

成人內容提醒

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

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