上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 76 下一页
摘要: 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 阅读(280) 评论(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 阅读(401) 评论(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 阅读(2211) 评论(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 阅读(305) 评论(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 阅读(300) 评论(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 阅读(235) 评论(0) 推荐(0) 编辑
摘要: private void ClickCmdExecuted(object obj) { ContentOb = new ObservableCollection<string>(); Task.Run(() => { while (!cts.IsCancellationRequested) { Co 阅读全文
posted @ 2019-11-27 22:21 FredGrit 阅读(958) 评论(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 阅读(441) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WpfApp55.ViewModel { ... 阅读全文
posted @ 2019-11-24 17:02 FredGrit 阅读(468) 评论(0) 推荐(0) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 76 下一页