12 2019 档案
在网络共享服务器上创建共享文件夹。
摘要: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 阅读(933) 评论(0) 推荐(0) 编辑
C# SQL 增 删 改 查
摘要:一、查 SqlConnection conn = new SqlConnection(); conn.ConnectionString = sqlb.ConnectionString; conn.Open(); string sqlstr=""; SqlDataAdapter adap = new 阅读全文
posted @ 2019-12-29 15:05 Lionever 阅读(2653) 评论(0) 推荐(0) 编辑
C# DataGridView 与 datatable 之间数据传递
摘要:一、 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 阅读(4527) 评论(0) 推荐(0) 编辑
C# 调用命令行命令 net use
摘要: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 阅读(2056) 评论(0) 推荐(0) 编辑
C# 链接 sql server 数据库字符串
摘要:SqlConnectionStringBuilder sqlb = new SqlConnectionStringBuilder(); sqlb.DataSource = "ip address"; sqlb.InitialCatalog = "databasename"; sqlb.UserID 阅读全文
posted @ 2019-12-29 14:45 Lionever 阅读(403) 评论(0) 推荐(0) 编辑