摘要:
public static bool cdir(string xmmc) { bool flag = false; DirectoryInfo aimpath = new DirectoryInfo(@"\\192.168.1.217\共享文件夹 "); if (connectstat(aimpat 阅读全文
摘要:
一、查 SqlConnection conn = new SqlConnection(); conn.ConnectionString = sqlb.ConnectionString; conn.Open(); string sqlstr=""; SqlDataAdapter adap = new 阅读全文
摘要:
一、 DATAGRIDVIEW 数值传递给datable int cn = dataGridView1.Rows.Count; int col = dataGridView1.ColumnCount; for (int j = 0; j < col;j++ ) { DataColumn dc = n 阅读全文
摘要:
bool flag = false; Process pro = new Process(); try { pro.StartInfo.FileName = "cmd.exe"; pro.StartInfo.UseShellExecute = false; pro.StartInfo.Redirec 阅读全文
摘要:
SqlConnectionStringBuilder sqlb = new SqlConnectionStringBuilder(); sqlb.DataSource = "ip address"; sqlb.InitialCatalog = "databasename"; sqlb.UserID 阅读全文