Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var proc = new Process();
  2. proc.StartInfo.Arguments = string.Format("{0} {1}", inputFilePath, outputFilePath);
  3. proc.StartInfo.FileName = @Settings.GetImageMagickConvertPath();
  4. proc.StartInfo.CreateNoWindow = false;
  5. proc.StartInfo.UseShellExecute = false;
  6. proc.Start();
  7.  
  8. proc.StartInfo.UserName = "user";
  9.  
  10. System.Security.SecureString secret = new System.Security.SecureString();
  11.  
  12. foreach (char c in "pass")
  13. secret.AppendChar(c);
  14.  
  15. proc.StartInfo.Password = secret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement