上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 94 下一页
摘要: 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 阅读(820) 评论(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 阅读(284) 评论(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 阅读(404) 评论(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 阅读(2241) 评论(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 阅读(271) 评论(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 阅读(310) 评论(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 阅读(301) 评论(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 阅读(242) 评论(0) 推荐(0) 编辑
摘要: private void ClickCmdExecuted(object obj) { ContentOb = new ObservableCollection<string>(); Task.Run(() => { while (!cts.IsCancellationRequested) { Co 阅读全文
posted @ 2019-11-27 22:21 FredGrit 阅读(970) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Sockets; using System.IO; using System.Net; namespace ConsoleApp3... 阅读全文
posted @ 2019-11-25 13:21 FredGrit 阅读(443) 评论(0) 推荐(0) 编辑
上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 94 下一页