Questions tagged [processstartinfo]
269 questions
1
vote
0 answers
How do I know when the Process has started?
I want to open an application inside a Panel in a Form.
The name of the application is Stellarium. When the application first opens, it presents a splash screen, as in picture 1:
After a while, the main program opens as in picture 2:
The problem…

Selim Boz
- 29
- 3
1
vote
5 answers
Running an installer from within C#
I need to write code to download and run a program, e.g. notepad++ (npp.5.9.3.Installer.exe) this can be found on the web.
I run it with the ProcessStartInfo class. However when I normally execute the notepad++ installer, it will show me a few…

Amc_rtty
- 3,662
- 11
- 48
- 73
1
vote
1 answer
Get environment variables of a different process
I'm working with Service Fabric and I would like to create an observer of environment variables of selected processes.
I thought about this method:
var processes = Process.GetProcessesByName(processName);
foreach (var process in processes){
var…
user9946692
1
vote
0 answers
Print a document passing arguments to Process
I'm working on sending documents to a specific printer, in this case the "Microsoft to PDF" one.
Everything work fine except that a prompt comes up asking for the folder where to save the pdf and its name.
Process printJob = new…

Oiproks
- 764
- 1
- 9
- 34
1
vote
1 answer
Unable to correctly execute devenv from C#
I can execute devenv from powershell without any issues as follows:
PS C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE> ./devenv "C:\Users\m\Documents\Automation.AutoIVU\AutoIVU\AutoIVU\AutoIVU.csproj" /build…

TomSelleck
- 6,706
- 22
- 82
- 151
1
vote
2 answers
Run Rscript using ProcessStartInfo from C#
On executing below code I dont get expected value (8) in result variable? Where am I going wrong? Code executes without any error but value of the result variable will be blank throughout
R code:(Script.R)
AddTwo<-function(firstNumber,…

Kuntady Yathish
- 49
- 2
- 10
1
vote
1 answer
Printing .PDF from Winform Application
I have an application that executes an SSRS report to create a file, which is saved locally in PDF. I would like to print the file, but we have been experiencing problems with the Acrobat Reader security settings, which are stopping the print from…

High Plains Grifter
- 1,357
- 1
- 12
- 36
1
vote
0 answers
ProcessInfo Linux/Windows incompatibility
I'm trying to run same process as a child of current process. Showed below code works just fine under windows, but fails in Linux with error
No executable found matching command "dotnet-MyDll.dll"
var processInfo = new ProcessStartInfo
{
…

Adam Skrodzki
- 23
- 5
1
vote
0 answers
C# complicated cmd command
at first - yes I read similar topics and no, it is still not working for me :(
I have quite a long command I need to call from cmdline. It containes almost all special characters like ", \, spaces... so I do not know where the mistake is...
public…

Jan Daliba
- 29
- 5
1
vote
0 answers
C# Set PageSize for Print using ProcessStartInfo
I want to print a file (in my case a pdf) using ProcessStartInfo. The problem is I couldn't find a way to set page size of output file. I seems that it prints with default page size. Is there any way to set PageSize of the print using…

Saeed Vrz
- 147
- 1
- 3
- 10
1
vote
1 answer
Getting stdout from console app asyncronously without waiting for console to exit
I have an issue with getting some console standard output from a small long running console app spawned by my application.
My app starts the console app and the console app will stay alive listening on a port for the duration of my applications…

Tim Jarvis
- 18,465
- 9
- 55
- 92
1
vote
1 answer
How to create a C# application that opens "cmd.exe" in another window?
What I'd like to Do
I'd like to create a simple C# application that creates a Process object (the application's child process) that runs cmd.exe and, inside that shell, execute the command echo "Hello World!" (or whatever arbitrary string I…

Minh Tran
- 494
- 7
- 17
1
vote
0 answers
Opening a .pdf file with C#
I have created the following code to open a .pdf file from the root directory of my installed program.
private void HelpButton_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
…

Nym Pseudo
- 11
- 1
1
vote
3 answers
Sharing network files for writing and reading
I have client-server application developed in C#.NET 3.5. This application uses 3 programs to complete the required work. Process A(Server) and Process B(remote launcher) are developed in .NET and Process C is a third party console application…

Omkar
- 2,129
- 8
- 33
- 59
1
vote
1 answer
Using ProcessStartInfo to open chm
I'm attempting to open an old chm (compiled HTML) file to a specified bookmark using C# - Don't ask why ;)
var psi = new ProcessStartInfo("hh.exe");
psi.Arguments = @"ms-its:X:/MyApplication/Help/MYHELPFILE.chm::MYHELPFILE.htm#36531"; // 36531 is my…

Blair
- 3,671
- 4
- 29
- 40