Questions tagged [processstartinfo]
269 questions
0
votes
1 answer
.NET Core 2.0 - Can't access ProcessStartInfo.Verb
I've been working with .NET Core 2.0, and I've come across an issue while trying to launch an app with the UAC prompt.
To do this, I would generally set the Verb property of ProcessStartInfo to 'runas', however the property is apparently…

Joel
- 1,580
- 4
- 20
- 33
0
votes
1 answer
ProcessStartInfo Browser Output
I have tried everything I can think of and every code sample imaginable but I cannot get any type of output using Process.Start when opening a browser. I have tried just looking at error output and eliciting 404 errors and Standard Output using…

Ken Tola
- 671
- 1
- 8
- 18
0
votes
0 answers
Send pdf to acrobat reader in order to print without opening/showing any window
I am trying to sent a PDF document to print from C# using ProcessStartInfo but without opening adobe acrobat window. File is printed correctly but adobe acrobat popups a window even if I set it to minimized, no splash screen, no create window, etc.…

Willy
- 9,848
- 22
- 141
- 284
0
votes
0 answers
How do I correctly start a process with administrator rights?
So I've looked at alot of different SO posts, I've been on codeproject and dreamincode aswell but I cant for the life of me find out how to CORRECTLY start a process on Windows 8.1 with admin rights.
This is my code.
I'm trying to create a silent…

Jordan Jones
- 125
- 10
0
votes
1 answer
How to do print document from C# without any UI
I want to print a document from C# but don't want any UI for it. The document should be printed silently using C#.
I have tried ProcessStartInfo with Verb = "Print" but is shows UI to print the document.
Any kind of help is appreciated.

Sandip D
- 103
- 1
- 14
0
votes
1 answer
Command Line Using c# Code
I am starting a simple process using my c# code. I am able to open the cmd but not in the specified path and even the command is not executed, instead it shows The Handle is invalid error. It is done using simple winform application.
Below is my…

Kishan Vikani
- 105
- 1
- 9
0
votes
1 answer
How to print only 1 copy of document when using "Process" in c#
I am trying to print a pdf in a c# console application, by starting a process.
Instead of printing only 1 copy of the document it prints multiple copies (3, 4, 5 or 6 unpredictable). This is my code...
var p = new Process
{
StartInfo = new…

abrull
- 171
- 2
- 13
0
votes
0 answers
Running RegAsm From C#
That's my code:
Process regAsmProcess = new Process();
ProcessStartInfo Process_Info = new ProcessStartInfo();
Process_Info.FileName = "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Regasm.exe";
…

Matan L.
- 329
- 2
- 7
0
votes
0 answers
ProcessStartInfo waiting infinitely when hosted in IIS
Below code is working in Console/Windows Application also its working in web applications when I'm running the application through Web Development Server
ProcessStartInfo gsProcessInfo;
Process gsProcess;
gsProcessInfo = new…

Rishi Tiwari
- 1,041
- 1
- 10
- 20
0
votes
2 answers
C# process start impersonation error
I am trying to run the process with different user. When I run normal "notepad.exe" it works fine. But when I change the file to any other executable with full path(C:\\Program Files\\Microsoft Office\\Office15\\Excel.exe) or (C:\\Program Files…

Mashhoor Gulati
- 127
- 3
- 13
0
votes
4 answers
C# processstartinfo start process excel
I am trying to start excel with a file. It works fine when I run it with the same user. But with different user, only excel starts and that also with unknown error.
private void button1_Click(object sender, EventArgs e)
{
…

Mashhoor Gulati
- 127
- 3
- 13
0
votes
0 answers
Windows 10 command prompt programmatically output garbage for some commands
I have a legacy winForms program (runs on Windows 7 Embedded) that we are trying to make run on windows 10. We have a simple process where we start the command prompt process cmd.exe and do various tasks. One task is to interact with the write…

user3725237
- 131
- 2
- 10
0
votes
1 answer
Opening a C# File with ProcessStartInfo opens wrong Visual studio Instance
I have a C# Code Analysis Application that opens C# using ProcessStartInfo And Process Start. It almost works.
I want to use two instance of VS to perform the analysis: one to Debug the Analysis App, and another to have the File that is specified…

Mark Wardell
- 493
- 7
- 25
0
votes
0 answers
Output Chaining using C# Process and ProcessStartInfo i.e. Piping implementation in C#
I am trying to implement piping behavior in C#.NET using Process and ProcessStartInfo classes. My intention is to feed the output of previous command to next command so that that command will process the input and return result. have a look into…

Omkar
- 2,129
- 8
- 33
- 59
0
votes
0 answers
Downloading large file using ProcessStartInfo not continue after WaitForExit
I use ProcessStartInfo to download files. The code is as the following:
Process pc = new Process();
pc.StartInfo.FileName = Application.StartupPath + "\\" + [exe];
pc.StartInfo.Arguments = string.Format("Download {0}{1}{2} -out {3}{4}{5}", [some…

Ahmed Hamouda
- 43
- 8