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
-1
votes
1 answer

How to add some parameters with spaces with process.start

i just want to know it there is a way to pass some parameters with process start. I know it can be done with some spaces, but i want to send an adress and full name, both of them have their own spaces, and i need to send them as just 1 parameter.
Robert P.
  • 15
  • 3
-1
votes
1 answer

Process.Start(); as another user works but explorer.exe iexplore.exe throws exception

I'm having problems with a program and its buttons (I know, I'm awesome lol) the buttons can be "programmed" to run programs. They also can be set to run as admin (different credentials). If I set up simply notepad or cmd or explorer it runs like…
Nash
  • 69
  • 9
-1
votes
1 answer

Process.Start fails without ".exe" extension

I am trying to running an executable without ".exe" extension, when I'm trying to run my ".bin" file (actually it's .exe but I renamed it with .bin for prevent confusion) It's shows to me program selector windows. How can I avoid that? If…
Liveth
  • 31
  • 9
-1
votes
1 answer

How to prevent a process started by Process.Start() from exiting when my app exits?

my method... private static void RunAndExit(string command) { var processInfo = new ProcessStartInfo { FileName = "cmd.exe", Arguments = "/c " + command, CreateNoWindow = false, UseShellExecute = true, …
user3574948
  • 31
  • 1
  • 4
-1
votes
1 answer

How to close the windows opened by a process that has exited C#

I need to check if a process is launched and then verify its exit code. EXProcess.StartInfo.FileName = strExE; EXProcess.StartInfo.Arguments = tempFile; EXProcess.Start(); do {}while (!rdcProcess.WaitForExit(1000)); if (EXProcess.HasExited) {…
worried
  • 29
  • 1
  • 5
-1
votes
1 answer

Starting a process with Windows start-up (can not find supporing files)

I programmed (C# .Net 3.5) a process to start when windows (XP) starts. This process uses other files in the same folder as itself. Moreover, it starts another process, again located in the same folder. However, it seems like the process cannot…
-1
votes
2 answers

Alternatives to System.Diagnostics.Process.Start()

For some unknown reasons, An Executable (iw4sp.exe executable for Call of duty modern warfare 2) runs normally when launched from explorer but crashes when launched by Process.Start() in my application. Any alternatives to Process.Start?? i tried…
Umar Hassan
  • 192
  • 3
  • 11
-2
votes
1 answer

Process.Start not working as per examples on internet

I have a problem with opening a file in my .NET 6.0 C# WPF tool. I'm searching for files in a directory that contains a specific string. Afterwards, the user should be able to open the found files with a button or similar. The files, I'm finding. My…
-2
votes
0 answers

How do I access this executable program in network folder

Objective: I need to run this executable program on this path "\172.168.0.46\Inhouse Module\Michael Panaligan\AllUnit\RunCom.exe" It's working on my local computer but not on IIS Server Side. I don't know why it's not working on IIS Server Side when…
-2
votes
2 answers

Process.Start(path) is not opening the file in Default Desktop Application

I am trying open a downloaded file in it's default desktop application e.g. if that's a '.txt' file this should open in notepad and if it's a ('.docx') file, this should be opened using 'wordpad.exe' (if MS Word is not installed). I am trying to…
Muhammad Murad Haider
  • 1,357
  • 2
  • 18
  • 34
-2
votes
1 answer

Get file from Process.Start()-Method

I'm trying to retrieve a file from the Process.Start()-Method. Following scenario is given: I obtain a link from a third party program. This link can be a UNC-path, direct link to PDF/JPG/TIF-files, such as "www.certainServer.de/test.pdf", as well…
Jonas
  • 157
  • 1
  • 1
  • 6
-2
votes
1 answer

How to run a .jar file in c#

How to run the file C:/Myjarfile.jar in C#? When I try Process.Start("C:\\Myjarfile.jar"), it says: file cannot be found
-2
votes
1 answer

Go main function not operated first

package main import ( "bytes" "encoding/json" "io/ioutil" "log" "net/http" "os" "os/signal" "strings" "unicode/utf8" "sync" "github.com/robfig/cron" cpu "github.com/shirou/gopsutil/cpu" …
염경훈
  • 27
  • 1
  • 7
-2
votes
1 answer

Faulty ProcessStartInfo & Process.Start? (properly debugging?)

The question mainly is in the Read() method. public static void Read(object source, ElapsedEventArgs e) { serverID = File.ReadAllText(sidname); Console.WriteLine("Current ID: " + serverID); if (serverID != oldserverID && serverID !=…
DaFuze
  • 5
  • 3
-2
votes
2 answers

C# running new application

I m trying to run new application in my application like new open. I use: Process.Start(@"filelocation"); It is OK but when the user changes the file location, how can I make it found.
1 2 3
34
35