process.start Questions

6

Solved

I have a winforms application in C# where I have to open a certain Folder. I use System.Diagnostics.Process.Start(pathToFolder); This results in the following exception: System.ComponentModel...
Wasteland asked 27/1, 2016 at 8:10

15

How do I start a process, such as launching a URL when the user clicks a button?
Flunkey asked 8/10, 2008 at 7:46

6

Solved

I've seen similar examples, but can't find something exactly like my problem. I need to run a command like this from C#: C:\FOLDER\folder with spaces\OTHER_FOLDER\executable.exe p1=hardCodedv1 p2...
Habilitate asked 26/6, 2013 at 13:24

5

To open a URL from a .NET application, many sites (including on StackOverflow) cite this example: Process.Start("http://www.google.com/"); On Windows 8, this works if Internet Explorer is the de...
Jolee asked 30/8, 2012 at 22:17

1

Solved

I want to open a website with the default browser. In .NET Framework I always used Process.Start("https://google.com") but when I do this in .NET 6, I get an exception saying that t...
Dullish asked 23/4, 2022 at 7:55

4

Solved

I am using psexec on my server to run an exe file on another server. How do I pass parameters to the other exe ? The exe that I am running on my server is psexec which in turn must run the exe nam...
Latecomer asked 19/4, 2015 at 10:56

2

Solved

I have tried several things now to hide the window of a new process (in this case it's just notepad.exe for testing), but it just won't work regardless of what I try. I have read many posts now al...
Aho asked 23/4, 2014 at 13:58

10

Solved

I would like to run an external command line program from my Mono/.NET app. For example, I would like to run mencoder. Is it possible: To get the command line shell output, and write it on my te...
Nakada asked 27/11, 2010 at 13:42

9

How can I run an EXE program from a Windows Service using C#? This is my code: System.Diagnostics.Process.Start(@"E:\PROJECT XL\INI SQLLOADER\ConsoleApplication2\ConsoleApplication2\ConsoleApplic...
Libenson asked 15/3, 2011 at 5:47

2

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 ch...
Godred asked 27/11, 2017 at 13:47

6

I'm able to create PDFs in my C#/WPF application and run them with the following: Process.Start(_pathToPDFFile); This works with Adobe Acrobat, but not with Adobe Reader. When Adobe Reader is in...
Conflation asked 21/5, 2014 at 8:51

3

Solved

I have an .exe file that needs to be run after I create a file. The file is successfully created and I am using the following code to run the .exe file after that: ProcessStartInfo processInfo = n...
Usually asked 27/7, 2015 at 9:2

5

Solved

Process.Start("d:/test.txt"); //simple .txt file works perfectly fine on Windows 8 onward but on Windows 7 (x64) it starts the process and immediately closes it. I've already tried the following: ...
Fascinating asked 21/5, 2017 at 20:17

3

Solved

I have the following trivial C# application that simply attempts to launch "jconsole.exe", which on my machine is located in C:\Programs\jdk16\bin. using System; using System.Diagnostics; namespa...
Featherveined asked 12/9, 2012 at 16:50

2

Solved

I know that you can run a process with a given username/password in the following way: var processInfo = new ProcessStartInfo { WorkingDirectory = workingDirectory, FileName = "a name",...
Roley asked 28/7, 2013 at 14:2

2

Solved

I have a utility that I have written in VB.net that runs as a scheduled tasks. It internally calls another executable and it has to access a mapped drive. Apparently windows has issues with schedul...
Fertilization asked 6/4, 2010 at 17:1

4

ProcessStartInfo startInfo = new ProcessStartInfo(); Process first = new Process(); startInfo.FileName = "OUTLOOK"; startInfo.Arguments = "http:\\blabla.com\EMAIL.msg"; startInfo.CreateNoWindow ...
Jenijenica asked 16/2, 2015 at 4:5

4

I have created a Windows Service with Timer and in firing event of timer.Elapsed I am creating a process (System.Diagnostics.Process.Start(exe path)) at interval of 5 seconds. But this process does...
Donets asked 23/12, 2010 at 5:46

2

I have an application that uses Process.Start(string Filename) to open up a file. This method overload will cause the system to invoke the appropriate application based on the filename extension. I...
Karakorum asked 1/6, 2012 at 14:54

3

Solved

Using C#, I am trying to pass command-line arguments to a new process using Process.Start(): string path = @"C:\Demo\Demo.exe"; string arguments = "one two three"; ProcessStartInfo startInfo = new...
Romona asked 2/6, 2014 at 18:15

1

Solved

I have an updater exe that is meant to close the primary exe, replace it with an updated exe, and then launch that updated exe. When the updater attempts to start the updated exe, if the UAC permis...
Prud asked 28/4, 2014 at 20:3

2

Solved

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...
Inconvertible asked 28/4, 2014 at 6:17

2

Solved

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.
Strip asked 11/3, 2014 at 6:55

1

Solved

I have program pro1.exe that reads from input file, calculates result and writes it to output file. Now I'm writing program test.exe, that tests it on different tests (fill input, run pro1 using Pr...
Candidate asked 1/8, 2013 at 22:54

5

Solved

I have to start a command line program with System.Diagnostics.Process.Start() and run it as Administrator. This action will also be run by a Scheduled Task every day.
Adorn asked 5/11, 2010 at 14:9

© 2022 - 2024 — McMap. All rights reserved.