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

Notification after starting an application using the Process.Start() method

I have a snippet of code which basically invokes an application using Process.Start() method. ProcessStartInfo psi = new ProcessStartInfo(strAppPath); psi.WindowStyle = ProcessWindowStyle.Maximized | ProcessWindowStyle.Normal; //Starts the xyz…
this-Me
  • 2,139
  • 6
  • 43
  • 70
2
votes
1 answer

VB.Net Printing a PDF using FoxIt Reader or Adobe Reader

I am having an issue with both Adobe Reader and FoxIt Reader when trying to print a PDF document. Both issues are different but a solution to either one will allow me to fix my issue. The issue I am having with Adobe Reader when trying to print…
Rambomst
  • 653
  • 2
  • 10
  • 28
2
votes
1 answer

Gaining control over process started by an URI in C#

I'm making a program which opens a configured application after with the passed paramters through an url with shell execute. I achieved this with the following: ProcessStartInfo procinfo = new ProcessStartInfo(URI); procinfo.UseShellExecute =…
Lord Gamez
  • 299
  • 7
  • 15
2
votes
3 answers

Process.Start opens too many browsers in XNA game

I'm creating a game in XNA that runs on a PC. On the splash screen, the user has three options. If they press "Enter" the game will begin, if they press "M" they'll go to the Help menu and if they press "W" I want that to take them to my…
Mike
  • 21
  • 1
2
votes
0 answers

ASP.Net Core inside Docker Container Process.Start() System.ComponentModel.Win32Exception (8): Exec format error

I have been trying to call a process inside a docker container. ProcessStartInfo pStart = new ProcessStartInfo(); pStart.FileName = fileName; pStart.Arguments = arguments; pStart.WindowStyle =…
NickSx8
  • 21
  • 1
2
votes
1 answer

c# - Windows PowerShell workflow does not work with Process.Start() or PowerShell.Create()

I try to run Windows PowerShell workflow script from console application. Approach 1: var processInfo = new System.Diagnostics.ProcessStartInfo() { FileName = @"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", …
IamP
  • 108
  • 7
2
votes
1 answer

Unable to run process with arguments

Program Logic Trying to run python script using Process.Start() with agrument. I'm trying to automate a script using GUI where for each list of arguments, a new python command is generated and run. Problem The python process does not start. CMD…
newbieCoder
  • 131
  • 8
2
votes
0 answers

Getting "Access is Denied" error on Process.Start() on an application running an executable with all permissions granted

The context here is that we have a C# service that normally runs scheduled jobs, but an executable was created that allows jobs to be triggered manually via command line. We put that executable on a separate IIS server, and did NOT install it as a…
EPalm22
  • 45
  • 2
  • 6
2
votes
2 answers

mono Process.Start how to find bash?

In my webapp i do the below. I know its correct because i tried 1) dumping start_sz to a text file 2) su www-data 3) copy/paste the extract string and it worked. var start_sz = string.Format(@"bash -c 'ln ""{2}/{0}"" ""{2}/{1}""'", fn, newfn,…
user34537
2
votes
1 answer

Process.Start is very slow

I'm currently using this method and it works perfectly: public static void CreateEmailInDefaultMailEditor(string to, string subject, string body) { Process.Start($"mailto:{to}?subject={subject}&body={body}"); } I then tried it on…
Bidou
  • 7,378
  • 9
  • 47
  • 70
2
votes
2 answers

Process.Start() and Using a BAT file (Spaces in file path)

The app I'm making is just a quick interface for the default Windows Firewall for some basic add rule functions, as I open a lot of ports and apps. In order to get my app working how I want it, I need it to eventually have administrator permissions.…
2
votes
2 answers

C# The process cannot access file 'XYZ' because it is being used by another process

I am been fighting with this problem the last couple of days, it works fine when I am on my dev machine, but on the client it is showing this error. Now this is the code that I have that seems to be showing the error so any help or guidance would be…
V. Benavides
  • 533
  • 1
  • 7
  • 21
2
votes
1 answer

Process.Start for ftp:// prompts for app

I'm writing code that will start a download from our company's ftp (ftp://...) but when using Process.Start("ftp://..."); Windows will prompt me for an app to open it with (I'm using Windows 10). If I use Process.Start("http://www.google.com"); it…
derekantrican
  • 1,891
  • 3
  • 27
  • 57
2
votes
1 answer

How to disable Download Prompt like 'do you want to open or save or save_as?'

I'm trying to download a file located on internet site and I know how to do with WebClient class. But at this case which the site is re-directed to some web address and therefore, I'm considering to use Process.Start("URL address before…
Kay Lee
  • 922
  • 1
  • 12
  • 40
2
votes
1 answer

How to use Process.Start

I'm using process.Start to run Convert.exe. This program's purpose is to convert all files which are in the exe's folder. So when I normally use it, I copy paste a file into the same folder as Convert.exe and then run Convert.exe. Convert.exe will…
Iggy
  • 109
  • 2
  • 9