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
2
votes
2 answers

Process.Start() issue - No GUI displayed

I'm trying to launch a WPF .exe from my VisualWebGUI (winforms on the web basically) application. Everything works fine when I run it through VS2010. However when I deploy the site to IIS it does launch the .exe (I can see it writing out to a log…
2
votes
2 answers

Run R script with start.process in .net

I want to run an r script in vb.net which saves data in a .csv file. Till now i found the following approaches: dim strCmd as String strCmd = "R CMD BATCH" + "C:\test.R" process.start("CMD.exe", strCmd apparently this should work but in my case the…
ruedi
  • 5,365
  • 15
  • 52
  • 88
2
votes
0 answers

Process doesn't start with a correct user name

I am working on renewing an application. The old code had a main method which went through the running processes on windows and checked to see if a certain required process which is a part of the application is running, and if not it starts it. This…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
2
votes
2 answers

WaitForExit() activates on UAC or Security Warning

I'm fairly new to c# and this forum in general but as far as I'm concerned, I haven't seen any question like mine that will solve my problem. I'm calling the method Process.WaitForExit() to wait until an installation file finishes to install.…
user2595220
  • 53
  • 1
  • 1
  • 4
2
votes
2 answers

Process.Start() wont start the process correctly

Im making a small loader for the game PSOBB but for the offline version, im lazy to go in a folder called "servers" and launch all 3 server executable files, so thats y im making this program. So my problem is that i made a button that launches the…
xR34P3Rx
  • 395
  • 9
  • 28
2
votes
4 answers

Detect if launched process has been closed

c# I want to Detect if a launched program has been closed. I am currently launching it with the command Process.Start(Environment.CurrentDirectory + @"\Card Downloader.exe"); Has anyone got a way of doing this perhaps using a different launcher?
Froodle
  • 339
  • 2
  • 5
  • 15
2
votes
1 answer

"only part of a readprocessmemory or writeprocessmemory request was completed" during process.start

Possible Duplicate: C# Only part of a ReadProcessMemory or WriteProcessMemory request was completed during Process.Kill() I'm trying to kick off a new process from my current process. I'm using processInfo and process.start to do this. The new…
greenhat
  • 1,061
  • 1
  • 12
  • 19
2
votes
1 answer

Process.Start(link) omits part of the link

Possible Duplicate: Opening html file with query string I'm writing a simple console app using c# and I'm trying to open a local html file with "name" parameter. For now I'm using const url (For testing...): "file:///D:/index.html?name=bob" The…
elirandav
  • 1,913
  • 19
  • 27
2
votes
1 answer

How do I launch the "Manage another account" page from the "User Accounts" section in the control panel from a C# application

How do I launch the "Manage another account" page from the "User Accounts" section in the control panel from a C# application? I can currently launch the "User Accounts" app by using the command: System.Diagnostics.Process.Start("control.exe",…
Neil Hobson
  • 515
  • 1
  • 7
  • 14
2
votes
5 answers

How to run .exe from C#

I am developing wpf application in C#. I am using grib files in my application. I want to convert this grib file content into csv file. From command prompt I can easily do this. For this in command prompt I need to go to the folder location of…
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
2
votes
1 answer

Running a vbs with process.start as another user avoiding UAC

I'm trying to run a vb script using process.start() as another user that have admin rights, but i always get the UAC popup with username and password to fill. What i'm i doing wrong? var scriptProc = new Process { …
Phu Minh Pham
  • 1,025
  • 7
  • 21
  • 38
1
vote
3 answers

Process start from two strings

I am trying to open a file which a user can set. In other words it will never be a set path or file. so when the user has selected the file they want to open this button below will open it. I have declared l1 and p1 as public strings. public…
Marshal
  • 1,177
  • 4
  • 18
  • 30
1
vote
4 answers

C# equivalent of cd C:\appFolder c:\app.exe?

Possible Duplicate: .Net Process.Start default directory? I have a C# application, mono to be specific. This application needs to launch another application on the users system. I know of Process.Start and how to use it, but theres something…
eem
  • 53
  • 5
1
vote
1 answer

Process.Start() throws Win32Exception "The specified executable is not a valid application for this OS platform"

I'm trying to make my program open a link to a local HTML file in the user's default browser as a quick way to open a help page for my program. From what I gathered, using Process.Start(path) was the easiest way to do it, but when calling it, I get…
1
vote
2 answers

How do I wait for an Explorer window to finish opening?

Full repro example (.NET Framework 4.8 Console application, Windows 10): using System.Diagnostics; using System.Windows.Forms; static class Program { static void Main() { var p = Process.Start("explorer.exe", @"C:\Windows"); …
Heinzi
  • 167,459
  • 57
  • 363
  • 519