Browse Source

工具的整理分类

yuzhengyang 8 years ago
parent
commit
c08cf749f3
60 changed files with 202 additions and 453 deletions
  1. 2 2
      Fork.Net/Y.Utils/ComputerUtils/ComputerPermissionTool.cs
  2. 12 0
      Fork.Net/Y.Utils/AppUtils/StartupTool.cs
  3. 0 24
      Fork.Net/Y.Utils/AppUtils/UniqueTool.cs
  4. 0 26
      Fork.Net/Y.Utils/BaseUtils/DateTimeTool.cs
  5. 0 45
      Fork.Net/Y.Utils/ComputerUtils/IPHelper.cs
  6. 1 1
      Fork.Net/Y.Utils/BaseUtils/ListTool.cs
  7. 1 1
      Fork.Net/Y.Utils/BaseUtils/RMB.cs
  8. 1 1
      Fork.Net/Y.Utils/BaseUtils/ChineseHourTool.cs
  9. 1 1
      Fork.Net/Y.Utils/TimeUtils/DateTimeConvert.cs
  10. 8 1
      Fork.Net/Y.Utils/TimeUtils/DateTimeTool.cs
  11. 1 1
      Fork.Net/Y.Utils/TimeUtils/TimerTool.cs
  12. 1 1
      Fork.Net/Y.Utils/BaseUtils/UnixTimeTool.cs
  13. 1 1
      Fork.Net/Y.Utils/BaseUtils/WeekDayTool.cs
  14. 1 1
      Fork.Net/Y.Utils/EncryptUtils/AesTool.cs
  15. 1 1
      Fork.Net/Y.Utils/EncryptUtils/DesTool.cs
  16. 1 1
      Fork.Net/Y.Utils/EnumUtils/FlagsEnumTool.cs
  17. 1 1
      Fork.Net/Y.Utils/JsonUtils/ConvertJson.cs
  18. 2 2
      Fork.Net/Y.Utils/JsonUtils/JsonTool.cs
  19. 1 1
      Fork.Net/Y.Utils/StringUtils/SimilarString.cs
  20. 1 1
      Fork.Net/Y.Utils/StringUtils/StringTool.cs
  21. 2 2
      Fork.Net/Y.Utils/FileUtils/FileCodeHelper.cs
  22. 5 5
      Fork.Net/Y.Utils/FileUtils/FileTool.cs
  23. 1 1
      Fork.Net/Y.Utils/ImageUtils/AffineTool.cs
  24. 1 1
      Fork.Net/Y.Utils/ImageUtils/BarCodeToHTML.cs
  25. 1 1
      Fork.Net/Y.Utils/ImageUtils/CaptchaHelper.cs
  26. 1 1
      Fork.Net/Y.Utils/ImageUtils/ExifHelper.cs
  27. 1 1
      Fork.Net/Y.Utils/ImageUtils/ImageHelper.cs
  28. 1 1
      Fork.Net/Y.Utils/ImageUtils/ThunbnailTool.cs
  29. 3 7
      Fork.Net/Y.Utils/LogUtils/Log.cs
  30. 1 5
      Fork.Net/Y.Utils/LogUtils/LogLevel.cs
  31. 1 7
      Fork.Net/Y.Utils/LogUtils/LogType.cs
  32. 2 2
      Fork.Net/Y.Utils/OfficeUtils/WordHelper.cs
  33. 2 2
      Fork.Net/Y.Utils/FileUtils/DirTool.cs
  34. 1 1
      Fork.Net/Y.Utils/TxtUtils/IniTool.cs
  35. 3 3
      Fork.Net/Y.Utils/TxtUtils/TxtTool.cs
  36. 3 3
      Fork.Net/Y.Utils/NetworkUtils/EmailHelper.cs
  37. 1 1
      Fork.Net/Y.Utils/NetworkUtils/FTPHelper.cs
  38. 2 5
      Fork.Net/Y.Utils/HttpUtils/HttpTool.cs
  39. 1 1
      Fork.Net/Y.Utils/NetworkUtils/PingTool.cs
  40. 1 1
      Fork.Net/Y.Utils/SocketUtils/SocketTool.cs
  41. 0 50
      Fork.Net/Y.Utils/NetworkUtils/HttpHelper.cs
  42. 1 1
      Fork.Net/Y.Utils/AttributeUtils/AttributeTool.cs
  43. 1 1
      Fork.Net/Y.Utils/AttributeUtils/ControlAttribute.cs
  44. 1 1
      Fork.Net/Y.Utils/AttributeUtils/ControlAttributeEvent.cs
  45. 1 1
      Fork.Net/Y.Utils/AttributeUtils/CustomAttributeHelper.cs
  46. 2 6
      Fork.Net/Y.Utils/ReflectionUtils/DomainTool.cs
  47. 3 5
      Fork.Net/Y.Utils/ReflectionUtils/SimpleReflection.cs
  48. 1 1
      Fork.Net/Y.Utils/TestTest/OperatorTest.cs
  49. 4 3
      Fork.Net/Y.Utils/OfficeUtils/WordHelperTester.cs
  50. 0 21
      Fork.Net/Y.Utils/TxtUtils/LogTool.cs
  51. 0 41
      Fork.Net/Y.Utils/WindowsAPI/ComputerAFK.cs
  52. 0 88
      Fork.Net/Y.Utils/WindowsAPI/WindowInfo.cs
  53. 23 3
      Fork.Net/Y.Utils/ComputerUtils/WindowsAPI.cs
  54. 1 1
      Fork.Net/Y.Utils/HookUtils/UserActivityHook.cs
  55. 4 4
      Fork.Net/Y.Utils/ClipboardUtils/ClipboardTool.cs
  56. 1 2
      Fork.Net/Y.Utils/ComputerUtils/ComputerInfoTool.cs
  57. 1 1
      Fork.Net/Y.Utils/ComputerUtils/RegisterTool.cs
  58. 1 1
      Fork.Net/Y.Utils/WindowsAPI/ScreenCapture.cs
  59. 23 0
      Fork.Net/Y.Utils/WindowsUtils/InfoUtils/ShortcutTool.cs
  60. 63 58
      Fork.Net/Y.Utils/Y.Utils.csproj

+ 2 - 2
Fork.Net/Y.Utils/ComputerUtils/ComputerPermissionTool.cs

@@ -1,8 +1,8 @@
 using System.Security.Principal;
 
-namespace Y.Utils.ComputerUtils
+namespace Y.Utils.AppUtils
 {
-    public class ComputerPermissionTool
+    public class PermissionTool
     {
         public static bool IsAdministrator()
         {

+ 12 - 0
Fork.Net/Y.Utils/AppUtils/StartupTool.cs

@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Y.Utils.AppUtils
+{
+    class StartupTool
+    {
+    }
+}

+ 0 - 24
Fork.Net/Y.Utils/AppUtils/UniqueTool.cs

@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Y.Utils.AppUtils
-{
-    public class UniqueTool
-    {
-        /// <summary>
-        /// 判断应用在当前系统实例下是否唯一
-        /// </summary>
-        /// <param name="appName"></param>
-        /// <returns></returns>
-        public static bool IsUnique(string appName)
-        {
-            bool unique;
-            Mutex run = new Mutex(true, appName, out unique);
-            return unique;
-        }
-    }
-}

+ 0 - 26
Fork.Net/Y.Utils/BaseUtils/DateTimeTool.cs

@@ -1,26 +0,0 @@
-using System;
-
-namespace Y.Utils.BaseUtils
-{
-    public class DateTimeTool
-    {
-        public static DateTime TodayDate()
-        {
-            DateTime today = DateTime.Now;
-            DateTime result = new DateTime(today.Year, today.Month, today.Day);
-            return result;
-        }
-        public static DateTime TodayDate(DateTime today)
-        {
-            DateTime result = new DateTime(today.Year, today.Month, today.Day);
-            return result;
-        }
-        public static Tuple<int, int> ToMS(double second)
-        {
-            int Minute = 0, Second = 0;
-            Minute = (int)second / 60;
-            Second = (int)second % 60;
-            return new Tuple<int, int>(Minute, Second);
-        }
-    }
-}

+ 0 - 45
Fork.Net/Y.Utils/ComputerUtils/IPHelper.cs

@@ -1,45 +0,0 @@
-
-namespace Y.Utils.ComputerUtils
-{
-    /// <summary>
-    /// 共用工具类
-    /// </summary>
-    public static class IPHelper
-    {
-        //#region 获得用户IP
-        ///// <summary>
-        ///// 获得用户IP
-        ///// </summary>
-        //public static string GetUserIp()
-        //{
-        //    string ip;
-        //    string[] temp;
-        //    bool isErr = false;
-        //    if (System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_ForWARDED_For"] == null)
-        //        ip = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString();
-        //    else
-        //        ip = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_ForWARDED_For"].ToString();
-        //    if (ip.Length > 15)
-        //        isErr = true;
-        //    else
-        //    {
-        //        temp = ip.Split('.');
-        //        if (temp.Length == 4)
-        //        {
-        //            for (int i = 0; i < temp.Length; i++)
-        //            {
-        //                if (temp[i].Length > 3) isErr = true;
-        //            }
-        //        }
-        //        else
-        //            isErr = true;
-        //    }
-
-        //    if (isErr)
-        //        return "1.1.1.1";
-        //    else
-        //        return ip;
-        //}
-        //#endregion
-    }
-}

+ 1 - 1
Fork.Net/Y.Utils/BaseUtils/ListTool.cs

@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace Y.Utils.BaseUtils
+namespace Y.Utils.DataUtils.Collections
 {
     public sealed class ListTool
     {

+ 1 - 1
Fork.Net/Y.Utils/BaseUtils/RMB.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace Y.Utils.BaseUtils
+namespace Y.Utils.DataUtils.CurrencyUtils
 {
     /// <summary> 
     /// RMB µÄժҪ˵Ã÷¡£ 

+ 1 - 1
Fork.Net/Y.Utils/BaseUtils/ChineseHourTool.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace Y.Utils.BaseUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public class ChineseHourTool
     {

+ 1 - 1
Fork.Net/Y.Utils/TimeUtils/DateTimeConvert.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.TimeUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public sealed class DateTimeConvert
     {

+ 8 - 1
Fork.Net/Y.Utils/TimeUtils/DateTimeTool.cs

@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Text;
 
-namespace Y.Utils.TimeUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public sealed class DateTimeTool
     {
@@ -24,5 +24,12 @@ namespace Y.Utils.TimeUtils
             else
                 return dt2 - dt1;
         }
+        public static Tuple<int, int> ToMS(double second)
+        {
+            int Minute = 0, Second = 0;
+            Minute = (int)second / 60;
+            Second = (int)second % 60;
+            return new Tuple<int, int>(Minute, Second);
+        }
     }
 }

+ 1 - 1
Fork.Net/Y.Utils/TimeUtils/TimerTool.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.TimeUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public class TimerTool
     {

+ 1 - 1
Fork.Net/Y.Utils/BaseUtils/UnixTimeTool.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace Y.Utils.BaseUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public class UnixTimeTool
     {

+ 1 - 1
Fork.Net/Y.Utils/BaseUtils/WeekDayTool.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace Y.Utils.BaseUtils
+namespace Y.Utils.DataUtils.DateTimeUtils
 {
     public class WeekDayTool
     {

+ 1 - 1
Fork.Net/Y.Utils/EncryptUtils/AesTool.cs

@@ -5,7 +5,7 @@ using System.Security.Cryptography;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.EncryptUtils
+namespace Y.Utils.DataUtils.EncryptUtils
 {
     public class AesTool
     {

+ 1 - 1
Fork.Net/Y.Utils/EncryptUtils/DesTool.cs

@@ -6,7 +6,7 @@ using System.Security.Cryptography;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.EncryptUtils
+namespace Y.Utils.DataUtils.EncryptUtils
 {
     public class DesTool
     {

+ 1 - 1
Fork.Net/Y.Utils/EnumUtils/FlagsEnumTool.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace Y.Utils.EnumUtils
+namespace Y.Utils.DataUtils.EnumUtils
 {
     /// <summary>
     /// 标志枚举修改工具

+ 1 - 1
Fork.Net/Y.Utils/JsonUtils/ConvertJson.cs

@@ -6,7 +6,7 @@ using System.Reflection;
 using System.Collections;
 using System.Data.Common;
 
-namespace Y.Utils.JsonUtils
+namespace Y.Utils.DataUtils.JsonUtils
 {
     //JSON转换类
     public class ConvertJson

+ 2 - 2
Fork.Net/Y.Utils/JsonUtils/JsonTool.cs

@@ -1,8 +1,8 @@
 using Newtonsoft.Json;
 using System;
-using Y.Utils.TxtUtils;
+using Y.Utils.IOUtils.TxtUtils;
 
-namespace Y.Utils.JsonUtils
+namespace Y.Utils.DataUtils.JsonUtils
 {
     public class JsonTool
     {

+ 1 - 1
Fork.Net/Y.Utils/StringUtils/SimilarString.cs

@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Text;
 
-namespace Y.Utils.StringUtils
+namespace Y.Utils.DataUtils.StringUtils
 {
     public static class SimilarString
     {

+ 1 - 1
Fork.Net/Y.Utils/StringUtils/StringTool.cs

@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Text;
 
-namespace Y.Utils.StringUtils
+namespace Y.Utils.DataUtils.StringUtils
 {
     public class StringTool
     {

+ 2 - 2
Fork.Net/Y.Utils/FileUtils/FileCodeHelper.cs

@@ -1,8 +1,8 @@
 using System;
 
-namespace Y.Utils.FileUtils
+namespace Y.Utils.IOUtils.FileUtils
 {
-    public class FileCodeHelper
+    public class FileCodeTool
     {
         /// <summary>
         /// 计算文件的 MD5 值

+ 5 - 5
Fork.Net/Y.Utils/FileUtils/FileTool.cs

@@ -2,9 +2,9 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Linq;
-using Y.Utils.BaseUtils;
+using Y.Utils.DataUtils.Collections;
 
-namespace Y.Utils.FileUtils
+namespace Y.Utils.IOUtils.FileUtils
 {
     public class FileTool
     {
@@ -111,7 +111,7 @@ namespace Y.Utils.FileUtils
             {
                 for (int i = result.Count() - 1; i >= 0; i--)
                 {
-                    string ext = Path.GetFileName(result[i]);
+                    string ext = System.IO.Path.GetFileName(result[i]);
                     if (ext.IndexOf('.') >= 0)
                     {
                         ext = ext.Substring(ext.IndexOf('.'));
@@ -130,9 +130,9 @@ namespace Y.Utils.FileUtils
         {
             try
             {
-                if (File.Exists(file))
+                if (System.IO.File.Exists(file))
                 {
-                    File.Delete(file);
+                    System.IO.File.Delete(file);
                     return true;
                 }
                 else

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/AffineTool.cs

@@ -5,7 +5,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     public class AffineTool
     {

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/BarCodeToHTML.cs

@@ -1,7 +1,7 @@
 using System.Collections;
 using System.Text.RegularExpressions;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     public class BarCodeToHTML
     {

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/CaptchaHelper.cs

@@ -5,7 +5,7 @@ using System.Drawing.Imaging;
 using System.IO;
 using System.Text;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     /// <summary>
     /// Captcha

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/ExifHelper.cs

@@ -2,7 +2,7 @@
 using System.Drawing;
 using System.Text;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     public class ExifHelper : IDisposable
     {

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/ImageHelper.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Drawing;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     public class ImageHelper
     {

+ 1 - 1
Fork.Net/Y.Utils/ImageUtils/ThunbnailTool.cs

@@ -6,7 +6,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.ImageUtils
+namespace Y.Utils.IOUtils.ImageUtils
 {
     public class ThunbnailTool
     {

+ 3 - 7
Fork.Net/Y.Utils/LogUtils/Log.cs

@@ -1,13 +1,9 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Runtime.InteropServices;
-using System.Text;
-using System.Threading.Tasks;
-using Y.Utils.FileUtils;
-using Y.Utils.TxtUtils;
+using Y.Utils.IOUtils.PathUtils;
+using Y.Utils.IOUtils.TxtUtils;
 
-namespace Y.Utils.LogUtils
+namespace Y.Utils.IOUtils.LogUtils
 {
     /// <summary>
     /// Log 输出工具

+ 1 - 5
Fork.Net/Y.Utils/LogUtils/LogLevel.cs

@@ -1,10 +1,6 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 
-namespace Y.Utils.LogUtils
+namespace Y.Utils.IOUtils.LogUtils
 {
     [Flags]
     public enum LogLevel

+ 1 - 7
Fork.Net/Y.Utils/LogUtils/LogType.cs

@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Y.Utils.LogUtils
+namespace Y.Utils.IOUtils.LogUtils
 {
     public enum LogType
     {

+ 2 - 2
Fork.Net/Y.Utils/OfficeUtils/WordHelper.cs

@@ -5,9 +5,9 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.OfficeUtils
+namespace Y.Utils.IOUtils.OfficeUtils
 {
-    public class WordHelper
+    public class WordTool
     {
         private _Application wordApp = null;
         private _Document wordDoc = null;

+ 2 - 2
Fork.Net/Y.Utils/FileUtils/DirTool.cs

@@ -2,9 +2,9 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Linq;
-using Y.Utils.BaseUtils;
+using Y.Utils.DataUtils.Collections;
 
-namespace Y.Utils.FileUtils
+namespace Y.Utils.IOUtils.PathUtils
 {
     public class DirTool
     {

+ 1 - 1
Fork.Net/Y.Utils/TxtUtils/IniTool.cs

@@ -2,7 +2,7 @@
 using System.Runtime.InteropServices;
 using System.Text;
 
-namespace Y.Utils.TxtUtils
+namespace Y.Utils.IOUtils.TxtUtils
 {
     public class IniTool
     {

+ 3 - 3
Fork.Net/Y.Utils/TxtUtils/TxtTool.cs

@@ -2,10 +2,10 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Text;
-using Y.Utils.BaseUtils;
-using Y.Utils.FileUtils;
+using Y.Utils.DataUtils.Collections;
+using Y.Utils.IOUtils.PathUtils;
 
-namespace Y.Utils.TxtUtils
+namespace Y.Utils.IOUtils.TxtUtils
 {
     public class TxtTool
     {

+ 3 - 3
Fork.Net/Y.Utils/NetworkUtils/EmailHelper.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Net.Mail;
 using System.Net.Mime;
 
-namespace Y.Utils.NetworkUtils
+namespace Y.Utils.NetUtils.EmailUtils
 {
     public class EmailHelper
     {
@@ -153,9 +153,9 @@ namespace Y.Utils.NetworkUtils
         {
             try
             {
-                EmailHelper email = new EmailHelper("hiwaka@163.com", address,
+                EmailHelper email = new EmailHelper("邮箱地址", address,
                 title, report,
-                "hiwaka", "hiwaka11");
+                "用户名", "密码");
                 if (email.Send())
                     return true;
             }

+ 1 - 1
Fork.Net/Y.Utils/NetworkUtils/FTPHelper.cs

@@ -2,7 +2,7 @@
 using System.IO;
 using System.Net;
 
-namespace Y.Utils.NetworkUtils
+namespace Y.Utils.NetUtils.FTPUtils
 {
     /// <summary>
     /// FTP 帮助类

+ 2 - 5
Fork.Net/Y.Utils/HttpUtils/HttpTool.cs

@@ -1,15 +1,12 @@
 using Newtonsoft.Json;
 using System;
-using System.Collections.Generic;
 using System.IO;
-using System.Linq;
 using System.Net;
 using System.Text;
-using System.Threading.Tasks;
 using System.Web;
-using Y.Utils.StringUtils;
+using Y.Utils.DataUtils.StringUtils;
 
-namespace Y.Utils.HttpUtils
+namespace Y.Utils.NetUtils.HttpUtils
 {
     public class HttpTool
     {

+ 1 - 1
Fork.Net/Y.Utils/NetworkUtils/PingTool.cs

@@ -5,7 +5,7 @@ using System.Net.NetworkInformation;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.NetworkUtils
+namespace Y.Utils.NetUtils.NetDiagnoseUtils
 {
     public class PingTool
     {

+ 1 - 1
Fork.Net/Y.Utils/SocketUtils/SocketTool.cs

@@ -6,7 +6,7 @@ using System.Net.Sockets;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.SocketUtils
+namespace Y.Utils.NetUtils.SocketUtils
 {
     public class SocketTool : IDisposable
     {

+ 0 - 50
Fork.Net/Y.Utils/NetworkUtils/HttpHelper.cs

@@ -1,50 +0,0 @@
-using Newtonsoft.Json;
-using System;
-using System.IO;
-using System.Net;
-using System.Text;
-
-namespace Y.Utils.NetworkUtils
-{
-    public class HttpHelper
-    {
-        public string Get(string url, string encoding)
-        {
-            string result = "";
-            Encoding myEncoding = Encoding.GetEncoding(encoding);
-            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
-            req.Method = "GET";
-            try
-            {
-                using (WebResponse wr = req.GetResponse())
-                {
-                    //在这里对接收到的页面内容进行处理
-                    result = new StreamReader(wr.GetResponseStream(), myEncoding).ReadToEnd();
-                }
-            }
-            catch (Exception e) { }
-            return result;
-        }
-        public T Get<T>(string url, string encoding)
-        {
-            Encoding myEncoding = Encoding.GetEncoding(encoding);
-            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
-            req.Method = "GET";
-            try
-            {
-                using (WebResponse wr = req.GetResponse())
-                {
-                    //在这里对接收到的页面内容进行处理
-                    string response = new StreamReader(wr.GetResponseStream(), myEncoding).ReadToEnd();
-                    if (!string.IsNullOrWhiteSpace(response))
-                    {
-                        T result = JsonConvert.DeserializeObject<T>(response);
-                        return result;
-                    }
-                }
-            }
-            catch (Exception e) { }
-            return default(T);
-        }
-    }
-}

+ 1 - 1
Fork.Net/Y.Utils/AttributeUtils/AttributeTool.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.AttributeUtils
+namespace Y.Utils.ReflectionUtils.AttributeUtils
 {
     public static class AttributeTool
     {

+ 1 - 1
Fork.Net/Y.Utils/AttributeUtils/ControlAttribute.cs

@@ -6,7 +6,7 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 
-namespace Y.Utils.AttributeUtils
+namespace Y.Utils.ReflectionUtils.AttributeUtils
 {
     [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
     public class ControlAttribute : Attribute

+ 1 - 1
Fork.Net/Y.Utils/AttributeUtils/ControlAttributeEvent.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.AttributeUtils
+namespace Y.Utils.ReflectionUtils.AttributeUtils
 {
     public enum ControlAttributeEvent
     {

+ 1 - 1
Fork.Net/Y.Utils/AttributeUtils/CustomAttributeHelper.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.AttributeUtils
+namespace Y.Utils.ReflectionUtils.AttributeUtils
 {
     public static class CustomAttributeHelper
     {

+ 2 - 6
Fork.Net/Y.Utils/ReflectionUtils/DomainTool.cs

@@ -1,11 +1,7 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Y.Utils.LogUtils;
+using Y.Utils.IOUtils.LogUtils;
 
-namespace Y.Utils.ReflectionUtils
+namespace Y.Utils.ReflectionUtils.ReflectionCoreUtils
 {
     public static class DomainTool
     {

+ 3 - 5
Fork.Net/Y.Utils/ReflectionUtils/SimpleReflection.cs

@@ -2,12 +2,10 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using Y.Utils.FileUtils;
-using Y.Utils.LogUtils;
+using Y.Utils.IOUtils.FileUtils;
+using Y.Utils.IOUtils.LogUtils;
 
-namespace Y.Utils.ReflectionUtils
+namespace Y.Utils.ReflectionUtils.ReflectionCoreUtils
 {
     public class SimpleReflection : MarshalByRefObject
     {

+ 1 - 1
Fork.Net/Y.Utils/TestTest/OperatorTest.cs

@@ -4,7 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Y.Utils.TestTest
+namespace Y.Utils.Test
 {
     public class OperatorTest
     {

+ 4 - 3
Fork.Net/Y.Utils/OfficeUtils/WordHelperTester.cs

@@ -2,10 +2,11 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using Y.Utils.IOUtils.OfficeUtils;
 
-namespace Y.Utils.OfficeUtils
+namespace Y.Utils.Test
 {
-    class WordHelperTester
+    class WordToolTester
     {
         static void Main(string[] args)
         {
@@ -20,7 +21,7 @@ namespace Y.Utils.OfficeUtils
                 test.Add(q);
             }
 
-            WordHelper report = new WordHelper();
+            WordTool report = new WordTool();
             report.CreateNewDocument(@"F:\模板1.docx"); //模板路径
             report.InsertValue("name", "测试考试");//在书签“Bookmark_value”处插入值
             Table table = report.InsertTable("content", test.Count() * tsize, 1, 0); //在书签“Bookmark_table”处插入2行3列行宽最大的表

+ 0 - 21
Fork.Net/Y.Utils/TxtUtils/LogTool.cs

@@ -1,21 +0,0 @@
-using System;
-using Y.Utils.FileUtils;
-
-namespace Y.Utils.TxtUtils
-{
-    class LogTool
-    {
-        public static void Normal(string tag, string info)
-        {
-            try
-            {
-                string today = DateTime.Now.ToString("yyyy-MM-dd");
-                string logPath = AppDomain.CurrentDomain.BaseDirectory + "Log";
-                string file = string.Format(@"{0}\{1}.txt", logPath, today);
-                DirTool.Create(logPath);
-                TxtTool.Append(file, string.Format("time:{0} tag:{1} info:{2}", DateTime.Now.ToString("HH:mm:ss"), tag, info));
-            }
-            catch (Exception e) { }
-        }
-    }
-}

+ 0 - 41
Fork.Net/Y.Utils/WindowsAPI/ComputerAFK.cs

@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-
-namespace Y.Utils.WindowsAPI
-{
-    public class ComputerAFK
-    {
-        #region 系统空闲时间
-        #region 捕获时间结构体
-        [StructLayout(LayoutKind.Sequential)]
-        struct LASTINPUTINFO
-        {
-            // 设置结构体块容量  
-            [MarshalAs(UnmanagedType.U4)]
-            public int cbSize;
-            // 捕获的时间  
-            [MarshalAs(UnmanagedType.U4)]
-            public uint dwTime;
-        }
-        #endregion
-        [DllImport("user32.dll")]
-        private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
-        /// <summary>
-        /// 获取计算机无操作时间
-        /// </summary>
-        /// <returns></returns>
-        public static long GetLastInputTime()
-        {
-            LASTINPUTINFO vLastInputInfo = new LASTINPUTINFO();
-            vLastInputInfo.cbSize = Marshal.SizeOf(vLastInputInfo);
-            // 捕获时间  
-            if (!GetLastInputInfo(ref vLastInputInfo))
-                return 0;
-            else
-                return Environment.TickCount - (long)vLastInputInfo.dwTime;
-        }
-        #endregion
-    }
-}

+ 0 - 88
Fork.Net/Y.Utils/WindowsAPI/WindowInfo.cs

@@ -1,88 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Runtime.InteropServices;
-using System.Text;
-
-namespace Y.Utils.WindowsAPI
-{
-    public class WindowInfo
-    {
-        #region Windows 窗口操作
-        /// <summary>
-        /// 获取当前窗口句柄
-        /// </summary>
-        /// <returns></returns>
-        [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
-        public static extern IntPtr GetForegroundWindow();
-        /// <summary>
-        /// 显示窗口
-        /// </summary>
-        /// <param name="hwnd"></param>
-        /// <param name="nCmdShow">0关闭 1正常显示 2最小化 3最大化</param>
-        /// <returns></returns>
-        [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
-        public static extern int ShowWindow(IntPtr hwnd, int nCmdShow);
-        /// <summary>
-        /// 获取窗口大小
-        /// </summary>
-        /// <param name="hWnd"></param>
-        /// <param name="lpRect"></param>
-        /// <returns></returns>
-        [DllImport("user32.dll")]
-        [return: MarshalAs(UnmanagedType.Bool)]
-        static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);
-        #region 窗口大小结构体
-        [StructLayout(LayoutKind.Sequential)]
-        public struct RECT
-        {
-            public int Left; //最左坐标
-            public int Top; //最上坐标
-            public int Right; //最右坐标
-            public int Bottom; //最下坐标
-        }
-        #endregion
-        /// <summary>
-        /// 获取窗口所在进程ID
-        /// </summary>
-        /// <param name="hwnd"></param>
-        /// <param name="pid"></param>
-        /// <returns></returns>
-        [DllImport("user32", EntryPoint = "GetWindowThreadProcessId")]
-        public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int pid);
-        /// <summary>
-        /// 获取窗体标题
-        /// </summary>
-        /// <param name="hWnd"></param>
-        /// <param name="lpString"></param>
-        /// <param name="nMaxCount"></param>
-        /// <returns></returns>
-        [DllImport("user32.dll")]
-        public extern static int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
-        [DllImport("user32.dll")]
-        public static extern int GetWindowTextLength(IntPtr hWnd);
-        #endregion
-
-        /// <summary>
-        /// 当前窗口标题
-        /// </summary>
-        /// <returns></returns>
-        public static string GetNowWindowName()
-        {
-            StringBuilder windowName = new StringBuilder(GetWindowTextLength(GetForegroundWindow()) + 1);
-            GetWindowText(GetForegroundWindow(), windowName, windowName.Capacity);
-            return windowName.ToString() ?? "";
-        }
-        /// <summary>
-        /// 当前窗口进程名
-        /// </summary>
-        /// <returns></returns>
-        public static string GetNowProcessName()
-        {
-            int windowPid = 0;
-            GetWindowThreadProcessId(GetForegroundWindow(), out windowPid);
-            string processName = Process.GetProcessById(windowPid).ProcessName;
-            return processName ?? "";
-        }
-    }
-}

+ 23 - 3
Fork.Net/Y.Utils/ComputerUtils/WindowsAPI.cs

@@ -1,8 +1,9 @@
 using System;
+using System.Diagnostics;
 using System.Runtime.InteropServices;
 using System.Text;
 
-namespace Y.Utils.ComputerUtils
+namespace Y.Utils.WindowsUtils.APIUtils
 {
     public class WindowsAPI
     {
@@ -37,7 +38,6 @@ namespace Y.Utils.ComputerUtils
         }
         #endregion
 
-        #region Windows 窗口操作
         /// <summary>
         /// 获取当前窗口句柄
         /// </summary>
@@ -90,6 +90,26 @@ namespace Y.Utils.ComputerUtils
         public extern static int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
         [DllImport("user32.dll")]
         public static extern int GetWindowTextLength(IntPtr hWnd);
-        #endregion
+        /// <summary>
+        /// 当前窗口标题
+        /// </summary>
+        /// <returns></returns>
+        public static string GetNowWindowName()
+        {
+            StringBuilder windowName = new StringBuilder(GetWindowTextLength(GetForegroundWindow()) + 1);
+            GetWindowText(GetForegroundWindow(), windowName, windowName.Capacity);
+            return windowName.ToString() ?? "";
+        }
+        /// <summary>
+        /// 当前窗口进程名
+        /// </summary>
+        /// <returns></returns>
+        public static string GetNowProcessName()
+        {
+            int windowPid = 0;
+            GetWindowThreadProcessId(GetForegroundWindow(), out windowPid);
+            string processName = Process.GetProcessById(windowPid).ProcessName;
+            return processName ?? "";
+        }
     }
 }

+ 1 - 1
Fork.Net/Y.Utils/HookUtils/UserActivityHook.cs

@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 
-namespace Y.Utils.HookUtils
+namespace Y.Utils.WindowsUtils.HookUtils
 {
     public class UserActivityHook
     {

+ 4 - 4
Fork.Net/Y.Utils/ClipboardUtils/ClipboardTool.cs

@@ -1,7 +1,7 @@
 using System.Drawing;
 using System.Windows.Forms;
 
-namespace Y.Utils.ClipboardUtils
+namespace Y.Utils.WindowsUtils.InfoUtils
 {
     public class ClipboardTool
     {
@@ -11,7 +11,7 @@ namespace Y.Utils.ClipboardUtils
         /// <param name="s">文本内容</param>
         public static void SetText(string s)
         {
-            Clipboard.SetDataObject(s ?? "");
+            System.Windows.Forms.Clipboard.SetDataObject(s ?? "");
         }
         /// <summary>
         /// 获取剪贴板中的文本内容
@@ -19,7 +19,7 @@ namespace Y.Utils.ClipboardUtils
         /// <returns>返回剪贴板文本</returns>
         public static string GetText()
         {
-            IDataObject iData = Clipboard.GetDataObject();
+            IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
             return (string)iData.GetData(DataFormats.Text);
         }
         /// <summary>
@@ -28,7 +28,7 @@ namespace Y.Utils.ClipboardUtils
         /// <returns>位图</returns>
         public static Bitmap GetBitmap()
         {
-            IDataObject iData = Clipboard.GetDataObject();
+            IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
             if (iData.GetDataPresent(DataFormats.Bitmap))
             {
                 Bitmap bt = (Bitmap)iData.GetData(DataFormats.Bitmap);

+ 1 - 2
Fork.Net/Y.Utils/ComputerUtils/ComputerInfoTool.cs

@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Management;
 using System.Net.NetworkInformation;
 
-namespace Y.Utils.ComputerUtils
+namespace Y.Utils.WindowsUtils.InfoUtils
 {
     public static class ComputerInfoTool
     {
@@ -51,7 +51,6 @@ namespace Y.Utils.ComputerUtils
             { return "unknown"; }
         }
         #endregion
-
         #region 获取网卡信息
         /// <summary>
         /// 获取网卡信息

+ 1 - 1
Fork.Net/Y.Utils/ComputerUtils/RegisterTool.cs

@@ -1,7 +1,7 @@
 using Microsoft.Win32;
 using System;
 
-namespace Y.Utils.ComputerUtils
+namespace Y.Utils.WindowsUtils.InfoUtils
 {
     public class RegisterTool
     {

+ 1 - 1
Fork.Net/Y.Utils/WindowsAPI/ScreenCapture.cs

@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 
-namespace Y.Utils.WindowsAPI
+namespace Y.Utils.WindowsUtils.InfoUtils
 {
     /// <summary>
     /// 屏幕捕获类

+ 23 - 0
Fork.Net/Y.Utils/WindowsUtils/InfoUtils/ShortcutTool.cs

@@ -0,0 +1,23 @@
+using Y.Utils.IOUtils.PathUtils;
+
+namespace Y.Utils.WindowsUtils.InfoUtils
+{
+    public class ShortcutTool
+    {
+        public static void Create(string directory, string shortcutName, string targetPath, string description = null, string iconLocation = null)
+        {
+            DirTool.Create(directory);
+
+            //添加引用 Com 中搜索 Windows Script Host Object Model
+            string shortcutPath = System.IO.Path.Combine(directory, string.Format("{0}.lnk", shortcutName));
+            IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell();
+            IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut(shortcutPath);//创建快捷方式对象
+            shortcut.TargetPath = targetPath;//指定目标路径
+            shortcut.WorkingDirectory = System.IO.Path.GetDirectoryName(targetPath);//设置起始位置
+            shortcut.WindowStyle = 1;//设置运行方式,默认为常规窗口
+            shortcut.Description = description;//设置备注
+            shortcut.IconLocation = string.IsNullOrWhiteSpace(iconLocation) ? targetPath : iconLocation;//设置图标路径
+            shortcut.Save();//保存快捷方式
+        }
+    }
+}

+ 63 - 58
Fork.Net/Y.Utils/Y.Utils.csproj

@@ -55,69 +55,74 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="AppUtils\AppUnique.cs" />
-    <Compile Include="AppUtils\UniqueTool.cs" />
-    <Compile Include="AttributeUtils\AttributeTool.cs" />
-    <Compile Include="AttributeUtils\CustomAttributeHelper.cs" />
-    <Compile Include="AttributeUtils\ControlAttribute.cs" />
-    <Compile Include="AttributeUtils\ControlAttributeEvent.cs" />
-    <Compile Include="ClipboardUtils\ClipboardTool.cs" />
-    <Compile Include="EncryptUtils\AesTool.cs" />
-    <Compile Include="EncryptUtils\DesTool.cs" />
-    <Compile Include="EnumUtils\FlagsEnumTool.cs" />
-    <Compile Include="HookUtils\UserActivityHook.cs" />
-    <Compile Include="HttpUtils\HttpTool.cs" />
-    <Compile Include="ImageUtils\AffineTool.cs" />
-    <Compile Include="ImageUtils\ThunbnailTool.cs" />
-    <Compile Include="LogUtils\Log.cs" />
-    <Compile Include="ComputerUtils\ComputerInfoTool.cs" />
-    <Compile Include="ComputerUtils\ComputerPermissionTool.cs" />
-    <Compile Include="ComputerUtils\RegisterTool.cs" />
-    <Compile Include="ImageUtils\BarCodeToHTML.cs" />
-    <Compile Include="ComputerUtils\IPHelper.cs" />
-    <Compile Include="FileUtils\FileCodeHelper.cs" />
-    <Compile Include="LogUtils\LogLevel.cs" />
-    <Compile Include="LogUtils\LogType.cs" />
-    <Compile Include="NetworkUtils\FTPHelper.cs" />
-    <Compile Include="NetworkUtils\HttpHelper.cs" />
-    <Compile Include="NetworkUtils\EmailHelper.cs" />
-    <Compile Include="ImageUtils\CaptchaHelper.cs" />
-    <Compile Include="JsonUtils\ConvertJson.cs" />
-    <Compile Include="ImageUtils\ExifHelper.cs" />
-    <Compile Include="ImageUtils\ImageHelper.cs" />
-    <Compile Include="BaseUtils\RMB.cs" />
-    <Compile Include="NetworkUtils\PingTool.cs" />
-    <Compile Include="OfficeUtils\WordHelper.cs" />
-    <Compile Include="OfficeUtils\WordHelperTester.cs" />
+    <Compile Include="ReflectionUtils\AttributeUtils\AttributeTool.cs" />
+    <Compile Include="ReflectionUtils\AttributeUtils\CustomAttributeHelper.cs" />
+    <Compile Include="ReflectionUtils\AttributeUtils\ControlAttribute.cs" />
+    <Compile Include="ReflectionUtils\AttributeUtils\ControlAttributeEvent.cs" />
+    <Compile Include="DataUtils\Collections\ListTool.cs" />
+    <Compile Include="IOUtils\PathUtils\DirTool.cs" />
+    <Compile Include="IOUtils\FileUtils\FileCodeTool.cs" />
+    <Compile Include="IOUtils\FileUtils\FileTool.cs" />
+    <Compile Include="WindowsUtils\InfoUtils\ClipboardTool.cs" />
+    <Compile Include="DataUtils\EncryptUtils\AesTool.cs" />
+    <Compile Include="DataUtils\EncryptUtils\DesTool.cs" />
+    <Compile Include="DataUtils\EnumUtils\FlagsEnumTool.cs" />
+    <Compile Include="WindowsUtils\HookUtils\UserActivityHook.cs" />
+    <Compile Include="NetUtils\HttpUtils\HttpTool.cs" />
+    <Compile Include="IOUtils\ImageUtils\AffineTool.cs" />
+    <Compile Include="IOUtils\ImageUtils\ThunbnailTool.cs" />
+    <Compile Include="IOUtils\LogUtils\Log.cs" />
+    <Compile Include="WindowsUtils\InfoUtils\ComputerInfoTool.cs" />
+    <Compile Include="AppUtils\PermissionTool.cs" />
+    <Compile Include="WindowsUtils\InfoUtils\RegisterTool.cs" />
+    <Compile Include="IOUtils\ImageUtils\BarCodeToHTML.cs" />
+    <Compile Include="IOUtils\LogUtils\LogLevel.cs" />
+    <Compile Include="IOUtils\LogUtils\LogType.cs" />
+    <Compile Include="NetUtils\FTPUtils\FTPTool.cs" />
+    <Compile Include="NetUtils\EmailUtils\EmailTool.cs" />
+    <Compile Include="IOUtils\ImageUtils\CaptchaHelper.cs" />
+    <Compile Include="DataUtils\JsonUtils\ConvertJson.cs" />
+    <Compile Include="IOUtils\ImageUtils\ExifHelper.cs" />
+    <Compile Include="IOUtils\ImageUtils\ImageHelper.cs" />
+    <Compile Include="DataUtils\CurrencyUtils\RMB.cs" />
+    <Compile Include="NetUtils\NetDiagnoseUtils\PingTool.cs" />
+    <Compile Include="IOUtils\OfficeUtils\WordTool.cs" />
+    <Compile Include="Test\WordToolTester.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="BaseUtils\ChineseHourTool.cs" />
-    <Compile Include="BaseUtils\WeekDayTool.cs" />
-    <Compile Include="ComputerUtils\WindowsAPI.cs" />
-    <Compile Include="BaseUtils\DateTimeTool.cs" />
-    <Compile Include="FileUtils\DirTool.cs" />
-    <Compile Include="FileUtils\FileTool.cs" />
-    <Compile Include="BaseUtils\ListTool.cs" />
-    <Compile Include="JsonUtils\JsonTool.cs" />
-    <Compile Include="ReflectionUtils\DomainTool.cs" />
-    <Compile Include="ReflectionUtils\SimpleReflection.cs" />
-    <Compile Include="SocketUtils\SocketTool.cs" />
-    <Compile Include="StringUtils\SimilarString.cs" />
-    <Compile Include="StringUtils\StringTool.cs" />
-    <Compile Include="TestTest\OperatorTest.cs" />
-    <Compile Include="TimeUtils\DateTimeConvert.cs" />
-    <Compile Include="TimeUtils\DateTimeTool.cs" />
-    <Compile Include="TimeUtils\TimerTool.cs" />
-    <Compile Include="TxtUtils\IniTool.cs" />
-    <Compile Include="TxtUtils\LogTool.cs" />
-    <Compile Include="TxtUtils\TxtTool.cs" />
-    <Compile Include="BaseUtils\UnixTimeTool.cs" />
-    <Compile Include="WindowsAPI\ComputerAFK.cs" />
-    <Compile Include="WindowsAPI\ScreenCapture.cs" />
-    <Compile Include="WindowsAPI\WindowInfo.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\ChineseHourTool.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\WeekDayTool.cs" />
+    <Compile Include="WindowsUtils\APIUtils\WindowsAPI.cs" />
+    <Compile Include="DataUtils\JsonUtils\JsonTool.cs" />
+    <Compile Include="ReflectionUtils\ReflectionCoreUtils\DomainTool.cs" />
+    <Compile Include="ReflectionUtils\ReflectionCoreUtils\SimpleReflection.cs" />
+    <Compile Include="NetUtils\SocketUtils\SocketTool.cs" />
+    <Compile Include="AppUtils\StartupTool.cs" />
+    <Compile Include="DataUtils\StringUtils\SimilarString.cs" />
+    <Compile Include="DataUtils\StringUtils\StringTool.cs" />
+    <Compile Include="Test\OperatorTest.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\DateTimeConvert.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\DateTimeTool.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\TimerTool.cs" />
+    <Compile Include="IOUtils\TxtUtils\IniTool.cs" />
+    <Compile Include="IOUtils\TxtUtils\TxtTool.cs" />
+    <Compile Include="DataUtils\DateTimeUtils\UnixTimeTool.cs" />
+    <Compile Include="WindowsUtils\InfoUtils\ScreenCapture.cs" />
+    <Compile Include="WindowsUtils\InfoUtils\ShortcutTool.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />
   </ItemGroup>
-  <ItemGroup />
+  <ItemGroup>
+    <COMReference Include="IWshRuntimeLibrary">
+      <Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
+      <VersionMajor>1</VersionMajor>
+      <VersionMinor>0</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>tlbimp</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.