Program.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Azylee.Core.AppUtils;
  2. using Azylee.Core.ThreadUtils.SleepUtils;
  3. using Azylee.Core.WindowsUtils.ConsoleUtils;
  4. using Azylee.Core.WindowsUtils.ShortcutUtils;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. namespace Test.ProcessTool
  10. {
  11. class Program
  12. {
  13. static void Main(string[] args)
  14. {
  15. ShortcutTool.Create(
  16. Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
  17. "测试创建快捷方式",
  18. @"D:\CoCo\GitHub\Fork\Azylee.Utils\Tests\Test.ProcessTool\bin\Debug\Test.ProcessTool.exe");
  19. Cons.Print("测试 Default 测试");
  20. Cons.Print("测试 Muted 测试", ConsColorMode.Muted);
  21. Cons.Print("测试 Primary 测试", ConsColorMode.Primary);
  22. Cons.Print("测试 Secondary 测试", ConsColorMode.Secondary);
  23. Cons.Print("测试 Success 测试", ConsColorMode.Success);
  24. Cons.Print("测试 Info 测试", ConsColorMode.Info);
  25. Cons.Print("测试 Warning 测试", ConsColorMode.Warning);
  26. Cons.Print("测试 Danger 测试", ConsColorMode.Danger);
  27. Cons.Print("测试 Dark 测试", ConsColorMode.Dark);
  28. Cons.Print("测试 Light 测试", ConsColorMode.Light);
  29. Console.WriteLine();
  30. Console.WriteLine("====================");
  31. Console.WriteLine("====================");
  32. Console.ReadLine();
  33. //Azylee.Core.ProcessUtils.ProcessTool.Start("CPAU.EXE","-u Zephyr -p 123456 ");
  34. }
  35. }
  36. }