2019年12月29日
摘要: public static bool cdir(string xmmc) { bool flag = false; DirectoryInfo aimpath = new DirectoryInfo(@"\\192.168.1.217\共享文件夹 "); if (connectstat(aimpat 阅读全文
posted @ 2019-12-29 15:09 Lionever 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 一、查 SqlConnection conn = new SqlConnection(); conn.ConnectionString = sqlb.ConnectionString; conn.Open(); string sqlstr=""; SqlDataAdapter adap = new 阅读全文
posted @ 2019-12-29 15:05 Lionever 阅读(2651) 评论(0) 推荐(0) 编辑
摘要: 一、 DATAGRIDVIEW 数值传递给datable int cn = dataGridView1.Rows.Count; int col = dataGridView1.ColumnCount; for (int j = 0; j < col;j++ ) { DataColumn dc = n 阅读全文
posted @ 2019-12-29 14:55 Lionever 阅读(4473) 评论(0) 推荐(0) 编辑
摘要: bool flag = false; Process pro = new Process(); try { pro.StartInfo.FileName = "cmd.exe"; pro.StartInfo.UseShellExecute = false; pro.StartInfo.Redirec 阅读全文
posted @ 2019-12-29 14:48 Lionever 阅读(2029) 评论(0) 推荐(0) 编辑
摘要: SqlConnectionStringBuilder sqlb = new SqlConnectionStringBuilder(); sqlb.DataSource = "ip address"; sqlb.InitialCatalog = "databasename"; sqlb.UserID 阅读全文
posted @ 2019-12-29 14:45 Lionever 阅读(400) 评论(0) 推荐(0) 编辑