Questions tagged [processstartinfo]
269 questions
0
votes
0 answers
C# debug on the exe called from other project in the same Solution
I have the problem with camera"build In" I want to debug to investigate more in the issue but I face a problem which is my class call the .exe project directly it doesn't use no interface or something else so this prevent me to debug.
The ".exe"…

abla
- 1
- 4
0
votes
1 answer
How print dialog box selected printer to printing process
I am trying to print PDF file using Process
PrintDialog pdf = new PrintDialog();
if (pdf.ShowDialog() == DialogResult.OK)
{
pdf.AllowSelection = true;
pdf.AllowSomePages = true;
ProcessStartInfo info = new ProcessStartInfo();
info.Arguments…

RiksonTool
- 147
- 1
- 2
- 13
0
votes
0 answers
Are there characters that I need to escape in the ProcessStartInfo.Arguments?
I am using Process and ProcessStartInfo to execute Docker commands. However, it doesn't work for some commands. Here is the code and the example commands that I am using. All these commands work fine when executed on the Docker Toolbox command…

jmc
- 1,649
- 6
- 26
- 47
0
votes
0 answers
C# start process with different user on scheduled task
I'm running an application on windows task scheduler, I need to call another exe from this app with different user. I've tried the following but it never gets exception or calls the exe. Whats the mistake?
void callExe()
{
try
{
…

Kemal Duran
- 1,478
- 1
- 13
- 19
0
votes
1 answer
Process window not proceeding after reader.ReadLine()
I'm docking Neo4j Docker images using Process. I need to make sure that the images are docked properly before performing operations on it. As you can see here, I'm redirecting the standard output from the Docker Toolbox to my Process window and…

jmc
- 1,649
- 6
- 26
- 47
0
votes
0 answers
System Information - Set column's width programmatically
In my code I launch System Information and open a .nfo file.
Here is the code:
ProcessStartInfo psi = new ProcessStartInfo
{
FileName = "msinfo32.exe",
Arguments = "\"C:\Users\myName\Desktop\example.nfo\""
};
Process.Start(psi);
The…

RK Coder
- 398
- 2
- 14
0
votes
1 answer
Issue with starting processes on computer when path/filename weird/long
I have some code that uses processes to open files. It suddenly stopped working, and when I started investigating, I found it was due to the length/weirdness (special chars) of the path.
If I move the file to a different directory and/or rename it,…

Sastreen
- 597
- 4
- 13
0
votes
0 answers
What is reliable way to start external program for c# application
From my C# application I want to start another application that requires admin privilleges and has manifest that ensures it.
My part of code:
System.Diagnostics.ProcessStartInfo startInfo = new…

iljon
- 398
- 2
- 16
0
votes
0 answers
Excel hangs when closing from excel after being launched by c# app
I have an application that one of the functions it does is act as a central file console to where commonly accessed files can be tracked and launched from.
The problem I am having is when the user double clicks the file name or opens it by the open…

GreenBetweenTheBraces
- 31
- 1
- 7
0
votes
1 answer
Passing arguments are empty
I pass some arguments from WPF app to WinForm apps like this.
int processID = Process.GetCurrentProcess().Id;
Process p = new Process();
p.StartInfo.FileName = FileManager.AppDirectoryName + "\\" + winformApp;
p.StartInfo.Arguments =…

NoWar
- 36,338
- 80
- 323
- 498
0
votes
0 answers
Run app as other user in C#
I've got this project that needs to get finished in two days and I'm nearly done with it. Except there's a part of it that needs to start another app and run it as a different domain user.
So far I've got this in code:
Process proc = new…

ProToCooL
- 177
- 1
- 3
- 13
0
votes
1 answer
Argument for ProcessStartInfo needs quotes, always escapes
If I run the following command in a command prompt, it works:
"C:\Program Files (x86)\AppFolder\do.exe"
If I try to run the same thing as a process:
ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
…

James F
- 535
- 9
- 26
0
votes
4 answers
C# - Running a new process as a user with blank password
I have a child process I spawn from my main application that needs to be run as another local user on a Windows 7 machine. I would prefer to not set a password on that user account, but it seems that creating a new process with impersonation does…

kmfk
- 3,821
- 2
- 22
- 32
0
votes
1 answer
c# Getting WinForm to acknowledge Process.StartInfo.WindowStyle when launched programmatically
Microsoft Paint (mspaint.exe) will launch minimized with no problems. When launching a windows form I wrote in c# (myWinForm.exe) the Process.StartInfo.WindowStyle command gets ignored (always launched as normal window). Comments in code below…

Zambis
- 85
- 1
- 11
0
votes
0 answers
print web document using process.start
In my vb.net program I allow users to print arbitrary documents using Process.start and loading the processstartinfo with the proper parameters:
Dim p As New System.Diagnostics.ProcessStartInfo
p.Verb = "Print"
…

Ron V
- 11
- 4