c# - How to use more than one verb when starting a process? -
Currently I'm printing a doctor file using the following code:
< Code> System.Diagnostics processing p = new system Diagnostics Process (); P.StartInfo = new System.Diagnostics.ProcessStartInfo () {CreateNoWindow = false, Verb = "print", fileName = fileName // Put the right path here}; P.Start ();
What can I do that I can keep files open after printing or else it can be printed around other files and then print it. Can I use another verb with a process?
You can not
Works are implemented as a full command line: Each action corresponds to a full command line, which is defined in the registry. Thus, each new action will start an entirely different process, with only one executable binary going on (usually) with different command-line arguments.
To control an application in more detail, you can
read more about it:
Comments
Post a Comment