Questions tagged [processstartinfo]

269 questions
0
votes
1 answer

C# Start Program with ADMIN rights from other program

I´ve written a notify program, which communicats with an windows service on WebSocket. This notify program does not have admin rights but with click on button starts an other program which starts and stops the service. This program should run with…
Felix Arnold
  • 839
  • 7
  • 35
0
votes
0 answers

Process Started in C# Closing Randomly

I have a C# program that is acting as a update checker/launcher for a Unity Project I made. Basically it checks for updates, if there is one it downloads it then launches the program, otherwise it just launches it. Everything about it works except…
Jacob D
  • 83
  • 6
0
votes
1 answer

Why does execution of arduino-cli via cmd with file names with spaces in path not work?

I'm making a C# application that compiles Arduino code with arduino-cli. I'm calling it with the Process class using the ProcessStartInfo class and of course via cmd.exe which is absolutely necessary. arduino-cli.exe ignores all arguments and…
Comyar D
  • 172
  • 2
  • 9
0
votes
2 answers

ProcessStartInfo returning The directory name is invalid when invoking from SQL Job

I have a SQL Job that's running on a DB Server and on one of the steps it calls an application server to run an exe "cmd Exec step type" the exe application "C#" is invoked properly and does all its intended tasks, as a final step it runs cmd.exe to…
Marwah Abdelaal
  • 111
  • 2
  • 10
0
votes
0 answers

Access Remote PC Registry from Remotely-Started Process

Let's say my PC is A, and a remote one is B. Both are windows machines. From A I start an executable that is on a shared location in PC B. Using the Process and ProcessStartInfo classes. When the remote process tries to access the registry, it…
0
votes
1 answer

Unable to launch UWP app with ProcessStartInfo

I had to deploy UWP app says examples “OfflineFacialLogin”, I am able to launch “OfflineFacialLogin” manually from the command prompt like this “C:\Windows\System32>OfflineFacialLogin” and same code works debug environment with below code. var…
Pradeepa
  • 1
  • 2
0
votes
0 answers

C# PowerShell Error to run nltest (The term 'nltest' is not recognized as the name of a cmdlet)

I'm trying to run a powershell script in C# console application, but i've getting a trouble.. The code is simple: ProcessStartInfo startInfo = new ProcessStartInfo { FileName = "powershell.exe", …
Luiz Palte
  • 121
  • 1
  • 2
  • 12
0
votes
0 answers

Optimizing Python scripts' running time from C#

I apologize in advance if my question is badly formulated, for I don't know if what I need makes any sense. I'm currently working on a c# project where I need to run several time the same python script from inside the program, but with different…
Astrosias
  • 23
  • 4
0
votes
1 answer

Is there a way to open an IE window with a user-defined name. When same URL opened, already opened IE window comes to foreground

Here is my requirement which I intend to implement. There is one window application showing some icons which take me to different web sites. When I click on one of the icons, it should open an IE window and append a customized name to it. So, before…
0
votes
0 answers

Access is denied error when using ProcessStartInfo

I'm trying to run SoX command using ProcessStart but it's giving me an error with Access denied, i've made sure all admin access are in place not sure what else could be causing this error? var startInfo = new ProcessStartInfo(); …
sameer
  • 9
  • 2
0
votes
1 answer

C# executed Process does not return

I am executing a commandline via Process. When executed, the whole os kind of freezed, and it does the process does not terminate. However, if I execute my command manually, it works fine and terminates quick. Here is the whole method, which I am…
tobi
  • 753
  • 1
  • 14
  • 25
0
votes
2 answers

How to tackle spaces in commandline by c#

I have trouble executing a command via c#. The command consists of two paths, which I have to combine. Both paths contain spaces. String arguments = "/K \"" + dtExecPath + "\"" + @" /f " + "\"" + tmpPackagePath + "\""; // arguments =…
tobi
  • 753
  • 1
  • 14
  • 25
0
votes
0 answers

Microsoft Office VSTO Add-in and ProcessStartInfo Class

In VS2019, the following code runs CreatePDF.exe by taking input from c:\myFolder\test.txt, and creates a PDF file c:\myFolder\test.pdf. But when when I run the same code from a Microsoft WORD VSTO add-in, I don't see the output PDF file in…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
2 answers

Problem launching FFmpeg inside C#

I'm calling FFmpeg via ProcessStartInfo inside my C# application however, I can't keep getting the error; File for preset 'lossless_slow' not found Here's my C# code; var processinfo = new ProcessStartInfo(); processinfo.FileName =…
wonea
  • 4,783
  • 17
  • 86
  • 139
0
votes
1 answer

output from console app and read output from a forms app c#

So i have two applications. In the console app let's say i do Console.WriteLine("Hello World"); I then compile to an exe. From my main forms application i want to call this application var processStartInfo = new ProcessStartInfo { …
anonymous_
  • 51
  • 1
  • 7