You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
694 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Windows;
  5. namespace Apewer.Run
  6. {
  7. class Process
  8. {
  9. public Process()
  10. {
  11. if (Program.Arguments.NotEmpty())
  12. {
  13. Console.WriteLine(TextUtility.Join(" | ", Program.Arguments));
  14. Console.ReadKey();
  15. return;
  16. }
  17. var args = TextUtility.MergeProcessArgument(@"f:\ewq.txt", "title\nbody", "", "quote\"'quote");
  18. Console.WriteLine(WindowsUtility.ExecutablePath);
  19. Console.WriteLine(args);
  20. WindowsUtility.StartProcess(WindowsUtility.ExecutablePath, args);
  21. }
  22. }
  23. }