Questions tagged [processstartinfo]
269 questions
1
vote
1 answer
Error when start application through \Local Settings\Application Data\ in Windows 7
Simple code:
ProcessStartInfo psi = new ProcessStartInfo(path);
psi.UseShellExecute = false;
Process.Start(psi);
if path = C:\Users\Marat\AppData\Local\MyCompany\Program.exe, it's OK!
but if path = C:\Users\Marat\Local Settings\Application…

Marat
- 11
- 1
1
vote
2 answers
WaitForExit default browser
I'm using this code:
Process p = new Process();
ProcessStartInfo si = new ProcessStartInfo();
si.UseShellExecute = true;
si.FileName = Url;
p = Process.Start(si);
p.WaitForExit();
To open the "Url" in the default browser. I want to wait for the…

Valentin Radu
- 629
- 1
- 11
- 26
1
vote
1 answer
Workaround to "Item has already been added. Key in dictionary" using the same key everytime but with a different value
Under Environment Variables for User, i have added a variable with the key called eg.
TMP_VAR
and value eg.
C:\temp\sim
When starting a new process in my C# application created in VS2010 .Net 4.0 and setting the…

Phu Minh Pham
- 1,025
- 7
- 21
- 38
0
votes
1 answer
Start Process in Series and Parallel
I have a problem here.....
I have a List of ProcessStartInfo as List
I want to Start processes in Series i.e
if i starts first process then second process in the List should start only when the first process (Exits or…

Ankesh
- 4,847
- 4
- 38
- 76
0
votes
2 answers
How do I get 'RedirectStandardOutput' to work in NUnit?
I am working on an automation strategy for our QA group and need to be able to capture the output of scripts and EXE files. When I run this code as a console application, I am able to successfully capture the output of plink.exe:
class Program
{
…

0x574F4F54
- 355
- 2
- 7
- 15
0
votes
0 answers
Install an exe application from a customaction and using Process.Start
I am using WiX toolset 3.11.
I have an MSI installer which installs an App. During the installation of this App, I need to install other packages such as Python.
Now I am trying to install the installer of python version 3.9, that is,…

Willy
- 9,848
- 22
- 141
- 284
0
votes
0 answers
How can you test that a console window has been launched for the process you expect it to be?
I've got some code that runs an executable (args.FileName) and at the same time launches a console window for that process:
var process = new Process
{
StartInfo = new ProcessStartInfo(args.FileName, args.Arguments)
{
…

sr28
- 4,728
- 5
- 36
- 67
0
votes
0 answers
Executable launched with ProcessStartInfo does not set Registry subkey value
I have an executable which on startup creates/opens a registry entry in HKCU/Software with key.CreateSubkey("Newkey", true) and set a subkey value with key.SetValue("Subkey",Test"). The key and subkey are created when the executable is launched via…

SimonKravis
- 553
- 1
- 3
- 24
0
votes
0 answers
Using BeginOutputReadLine, Is there any way to read output stream of languages other than english? process.OutputDataReceived is not firing
I am using proc.BeginOutputReadLine(); proc.BeginErrorReadLine(); for reading content and storing to output variable, but this is working only for english language.
process.OutputDataReceived is not firing for non english characters.
bool…

rama kanth
- 1
- 2
0
votes
0 answers
ProcessStartInfo with powershell
Hello i have problem i want to open a powershell sciprt, while i use Process.Start everything work, but windows popup for a second, and thats why i want to use ProcessStartInfo, but i make something wrong.
ProcessStartInfo startInfo…

Kirlen
- 1
- 1
0
votes
1 answer
C# Process Argument is not working with startInfo.Arguments
I am doing an unattended installer, I ran it with cmd as below, and it is working without any problem.
setup.exe -q -J -Djava.security.manager=allow
Now I am trying to use the same arguments in my c# console application code, but it will ignore the…

w3000cpu
- 13
- 1
- 7
0
votes
1 answer
How to get an entire document list printed 'in order' in C#
here is my code to print documents in a binding list
PrintDialog printDialog = new PrintDialog();
DialogResult dialogResult = printDialog.ShowDialog();
if (dialogResult == DialogResult.OK)
{
…

LFLJM
- 65
- 10
0
votes
0 answers
User interactions (like /p) no longer working when redirecting standardinput and output for cmd.exe
If I use the code down below to redirect standardinput and standardoutput to a textbox, everything is working, except for lines which require interactive input from the user. For instance, if you execute the command dir /p c:\windows, the whole…

Eric van Loon
- 103
- 1
- 9
0
votes
0 answers
Run "Find" (ctrl + F) in Google Chrome using C#
I'm trying to make an app, which could open a pdf file in a browser (Chrome) and search for a certain word automatically. However, I can't find anything about passing commands to Google from C# whatsoever.
Process process = new…

Martin Míča
- 1
- 1
0
votes
0 answers
How to show progress of python script when using ProcessStartInfo in C#
I am using ProcessStartInfo in C# to run my python script. But i want to know what percentage the python script has processed.
I am using below code.
Python:
import time
if __name__ == '__main__':
for i in range(100):
#do something
…

dinhtai
- 11
- 2