上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 120 下一页
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Configuration; using MySql.Data.MySqlClient; using S 阅读全文
posted @ 2019-12-10 18:24 FredGrit 阅读(767) 评论(0) 推荐(0)
摘要: using System; using System.Text; using System.IO; namespace ConsoleApplication15 { class Program { static void Main(string[] args) { string fileName = @"..\..\Images\lj.jpg"; FileStreamReadToBytes(fil 阅读全文
posted @ 2019-12-09 11:44 FredGrit 阅读(827) 评论(0) 推荐(0)
摘要: using System; using System.Text; using System.IO; using System.Security.Cryptography; namespace ConsoleApplication13 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2019-12-09 11:18 FredGrit 阅读(294) 评论(0) 推荐(0)
摘要: private static void PathCopyFilesWithOriginalFolder() { int sourceFilesNum = 0; try { string sourceDir = @"E:\Source"; string destDir = @"E:\Dest"; string[] allSourceFiles = Directory.GetFiles(sourceD 阅读全文
posted @ 2019-12-04 11:15 FredGrit 阅读(422) 评论(1) 推荐(0)
摘要: based on https://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials 阅读全文
posted @ 2019-12-04 09:52 FredGrit 阅读(2291) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { string sourceDir = @"E:\SourcePath"; string destDir = @"E:\Dest"; CopyDirectoriesFiles(sourceDir, destDir); Console.ReadLine(); } public static void CopyDirectoriesFi 阅读全文
posted @ 2019-12-03 09:24 FredGrit 阅读(280) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApplication3 { cla... 阅读全文
posted @ 2019-12-02 16:19 FredGrit 阅读(319) 评论(0) 推荐(0)
摘要: static void GetNetVersionDemo() { using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(@"SOFTWARE\Microsoft\NET Fr... 阅读全文
posted @ 2019-11-28 22:35 FredGrit 阅读(315) 评论(0) 推荐(0)
摘要: using System.Reflection; static void ShowEnvironmentInfoDemo() { Type type = typeof(Environment); PropertyInfo[] pis = type.GetProperties(); if (pis != nu... 阅读全文
posted @ 2019-11-27 22:38 FredGrit 阅读(252) 评论(0) 推荐(0)
摘要: private void ClickCmdExecuted(object obj) { ContentOb = new ObservableCollection<string>(); Task.Run(() => { while (!cts.IsCancellationRequested) { Co 阅读全文
posted @ 2019-11-27 22:21 FredGrit 阅读(1000) 评论(0) 推荐(0)
上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 120 下一页