Questions tagged [processstartinfo]
269 questions
2
votes
0 answers
A Process run via C# code runs differently than the command line
I am calling Vipre's command line utility from C# in an ASP.Net application to scan a file for malware. I am an administrator on the machine where all of this is taking place. When I:
run the actual command line tool under my user (administrator)…

Nathan
- 31
- 3
2
votes
2 answers
Running Latex from C#
When running latex from C# using Process.Start, I'm getting this error: "latex: A required file system path could not be retrieved." It runs fine from the command line, so I'm not sure why it doesn't run from Process.Start. Has anyone run into…

Shane Fulmer
- 7,510
- 6
- 35
- 43
2
votes
2 answers
Does space have to be allocated to ProcessStartInfo?
I am porting C++ code to C# and I came across this in the C++ code,
SHELLEXECUTEINFO shell;
memset(&shell, 0, sizeof(shell));
//the properties in shell are set
ShellExecuteEx(&shell);
So now I am using Process.Start() and ProcessStartInfo for the…

skwear
- 563
- 1
- 5
- 24
2
votes
0 answers
PowerShell | System.Diagnostics.Process | Java | Hide Window
I try to start an Java program from a PowerShell script, but I don't want see any window. I have already tried all possible combinations of parameters for ProcessStartInfo and Process, but it still displays a empty shell window for java.exe. This is…

André
- 464
- 4
- 17
2
votes
0 answers
F# ProcessStartInfo Process is waiting for userinput
Iam trying to implement git cherrypicking.
My process hangs when I close the merge tool without solving mergeconflicts, since airaxis tool asks for Was the merge successful? [y/n].
How do I check if my process is waiting for input?
How can I…

bhavani
- 29
- 3
2
votes
1 answer
How to pass string as command line argument in python using C#
I am try to send the string as command line argument to my python script as follow:
var cmdToBeExecute = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\myScript.py";
var start = new ProcessStartInfo
…

m2pathan
- 360
- 2
- 17
2
votes
0 answers
Windows Service, Start Process as Current User, Couldn't Focus
My problem is about starting a process from windows service. I succeed opening process with below method.
[DllImport("advapi32.dll", EntryPoint = "CreateProcessAsUser", SetLastError = true, CharSet = CharSet.Ansi, CallingConvention =…

dilan
- 21
- 4
2
votes
1 answer
Determining end of console output
I receive console output in my application. I use code from here (the accepted solution).
But I never get null in my OutputDataReceived. Instead, I have String.Empty at the end of the output.
Would it be correct to use String.NullOrEmpty instead of…

amplifier
- 1,793
- 1
- 21
- 55
2
votes
2 answers
Cannot convert from string to System.Diagnostics.ProcessStartInfo C#
I have created my program in the compact framework 3.5, and I am trying to open an html file in my program using this code:
string path = @"Help\index.html";
System.Diagnostics.Process.Start(path);
However I am receiving the following…

nate
- 1,418
- 5
- 34
- 73
2
votes
1 answer
Starting CLI application programmatically does not work depending on arguments
I try to start plink.exe (PuTTY Link, the command line utility/version of PuTTY) from a C# application to establish an SSH reverse tunnel, but it does no longer work as soon as I pass the correct parameters.
What does that mean? The following works…

Daniel Beck
- 6,363
- 3
- 35
- 42
2
votes
1 answer
ProcessStartInfo not recognising command inside .sh file
I'm trying to run the following commands from a file called teste.sh
kpm restore
k web
They run just fine when I open the terminal cd to the correct folder and do "sh teste.sh", but when i try to run the following on monodevelop:
using…

Daniel
- 81
- 1
- 6
2
votes
0 answers
Executing an .exe in a DNN Module
I'm trying to get my DNN module (6.1.3) to start up any kind of executable when a certain condition happens in my program. At this time I'm just trying to have it run Notepad and create a text file. Here's what I'm trying at the…

Mitchell
- 253
- 1
- 5
- 16
2
votes
2 answers
Running a command line exe from windows service
I have a windows service that is intended to do the following:
Monitor a folder on the server for PDF files
When file arrives, run a third party exe to convert the PDF to Excel. No text output is generated. The third party tool simply uses the…

Flintlock Wood
- 41
- 1
- 4
2
votes
3 answers
How do you run a program you don't know where the arguments start?
The subject doesn't say much cause it is not easy to question in one line.
I have to execute a few programs which I read from the registry. I have to read from a field where somebody saves the whole paths and arguments.
I've been using…

sebagomez
- 9,501
- 7
- 51
- 89
2
votes
2 answers
Process class db2cmd c#
I have my program which needs to run a ".BAT" file in IBM DB2 (db2cmd.exe). And log the contents of that console into a string, which I should be able to format.
Status quo is:
The bat file contains username and password to the database, Export to…

Joy
- 21
- 3