摘要:
一、添加引用 using Microsoft.Win32;//添加的引用 二、开启和关闭的方法 string path = Application.ExecutablePath; RegistryKey rk = Registry.LocalMachine; RegistryKey rk2 = rk 阅读全文
posted @ 2017-11-28 17:26
阚金翔
阅读(756)
评论(0)
推荐(0)
摘要:
string str = string.Empty;if (str == ""){ }else { } if (str == string.Empty){ }else { } if (str.Length == 0)//效率最高{ }else { } if (string.IsNullOrEmpty 阅读全文
posted @ 2017-11-28 09:21
阚金翔
阅读(2267)
评论(0)
推荐(0)
摘要:
Computer MyComputer = new Computer();MyComputer.FileSystem.RenameFile(FileName, newFileName);//其中FileName是你所要重命名的文件的全路径,newFileName仅仅是目标文件名。 创建于2017年2 阅读全文
posted @ 2017-11-28 09:20
阚金翔
阅读(134)
评论(0)
推荐(0)
浙公网安备 33010602011771号