Questions tagged [process.start]

The Start() method on the .NET System.Diagnostics.Process class for starting applications from within a program

See https://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx

516 questions
6
votes
2 answers

Diagnostics.Process doesn't open PDF file using adobe reader

I'm having a problem while trying to open a PDF file using Process.Start(). The program runs the process as a background process but no adobe reader window show up. A solution i found was to use chrome.exe, but my client want to open on…
Wesley
  • 61
  • 1
  • 4
6
votes
4 answers

.NET 4: Process.Start using credentials returns empty output

I run an external program from ASP.NET: var process = new Process(); var startInfo = process.StartInfo; startInfo.FileName = filePath; startInfo.Arguments = arguments; startInfo.UseShellExecute = false; startInfo.RedirectStandardOutput =…
alexey
  • 8,360
  • 14
  • 70
  • 102
5
votes
2 answers

How to bring up the "Windows cannot open this file" dialog?

My users can attach documents to various entities in the application. Of course, if user A attaches a .TIFF file, user B may not have a viewer for that type of file. So I'd like to be able to bring up this dialog: alt text…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
5
votes
2 answers

Debugging when my code is started by external program with Process.Start()

Suppose I have a C# WinForms application and it is started by external program simply by using Process.Start(MyModule.exe). I've tried to debug my code by using My project properties->Debug->Start Action->Start external program (with setting proper…
bairog
  • 3,143
  • 6
  • 36
  • 54
5
votes
2 answers

Does Process.Start terminate the child program when the parent terminates?

Do programs started with Process.Start(exepath); terminate when the parent process ends? I'm getting some strange behavior with it and believe that could be the issue.
Christian Stewart
  • 15,217
  • 20
  • 82
  • 139
5
votes
3 answers

What is the difference between Process.Start() and running manually?

I am creating an app for the company I work for which will backup the data for some software we supply. It has options to add SQL databases, folders, files and reg keys to the backup job which are then put into a Zip file. There are also options…
TheCrimsonSpace
  • 188
  • 1
  • 8
5
votes
1 answer

Open IE via C# -> mailto fails

I found some strange behavior in ie started by Process.Start() (.Net Framework) To reproduce this just follow following steps. Required: C# IDE+compiler outlook (in my situation: outlook 2010 - other versions should be the same problem but not…
wischi
  • 666
  • 10
  • 34
5
votes
2 answers

How to open two separate (default) browser windows instead of new tabs

I'm trying to use C# to open two separate browser windows side by side. I've tried using Process.Start(url) but that causes Chrome to open new tabs instead of new windows. This seems to work on IE, however I'd like to have code that can work with…
user1715925
  • 607
  • 9
  • 26
4
votes
0 answers

Application launched from ASP.NET using Process.Start fails if user credentials are specified

I'm unable to use Process.Start to start a simple console application when I specify user credentials. It appears that the call to Process.Start tries to start the application, but the application immediately fails with an event log entry (see…
rsbarro
  • 27,021
  • 9
  • 71
  • 75
4
votes
2 answers

How to start an XNA game with another C# program

So, I recently started trying to use an XNA program to start another XNA program. I've been using the normal method of "Process.Start", which works fine when opening Firefox or Media Player. However, whenever I try to start any XNA program (I've…
Kezip
  • 43
  • 5
4
votes
2 answers

Handling Closing of Multiple Processes

Here's what I'm doing. I have a loop that fires 20 processes using Process.Start(). I want them all to fire at once, however I want to catch them as they close. Is there anyway to do this in C#? I know you can do process.WaitForExit(), but then…
NwkProg
  • 87
  • 1
  • 6
4
votes
3 answers

Execute multiple Process.Start() sequentially in C#

I'm executing 3 exes using Process.Start() in my C# application. I want to run all these exes sequentially. Right now, each Process.Start() executes on its own in a parallel manner. eg: Process.Start(exe1ForCopying_A_50_Mb_File); …
Sandeep
  • 5,581
  • 10
  • 42
  • 62
4
votes
1 answer

Process.Start("Excel.exe") exits immediately

I inherited some code that is now not working. It is supposed to use the Process class to start "Excel.exe". But if I break on the next line I can see the my process instance has the error: 'process.BasePriority' threw an exception of type…
Mwspencer
  • 1,142
  • 3
  • 18
  • 35
4
votes
2 answers

c# Process.Start() not returning correct response

I'm developing a program, where the user can start any application from the program. The program will store the process id of the application started, so it can terminate it when the user wants to. Process application = new…
mrid
  • 5,782
  • 5
  • 28
  • 71
4
votes
4 answers

Win32Exception the parameter is incorrect

exe file using Process.Start() but it throws the "Win32Exception the parameter is incorrect". Process p = new Process(); Process.Start("C:\Program Files\APS2PP\keyl2000.exe"); I can run this file through command prompt successfully.
Mukesh Gupta
  • 49
  • 1
  • 2
  • 3
1 2
3
34 35