Questions tagged [processstartinfo]

269 questions
0
votes
1 answer

Hide process window

I have a process that I need hidden, I have tried the following lines of code to make it hidden: p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; p.StartInfo.CreateNoWindow = true; The first line just simply does not make it non-visible and the…
ploxiblox
  • 67
  • 7
0
votes
2 answers

C# Using ProcessStartInfo and Process.HasExited

I want to use ProcessStartInfo to startup programs from my C# application. I am using ProcessStartInfo insted of normal Process because I want to startup programs minimized so I will be using ProcessWindowStyle.Minimized and maybe I will also pass…
Cassie Kasandr
  • 341
  • 2
  • 6
  • 15
0
votes
1 answer

processStartInfo run exe?

when you invoke : ProcessStartInfo startInfo = new ProcessStartInfo("someExecutable.exe"); Does this actually run the someExecutable.exe or does it just monitor that? I am essentially seeing if this can be used to read output from an already…
0
votes
1 answer

How change attributes to UAC?

I need change of properties of windows User Account Control. (Program Name, File Origin, Verified Publisher) Is This Possible?
0
votes
0 answers

output to a web site from winforms app

I have an winforms VB application that outputs a string of characters to a serial port and it goes through RS232 port to another computer and writes to a portal on the other computer -- I'm not sure if it writes one character at a time or the whole…
user16485
  • 1
  • 1
0
votes
3 answers

taskkill Mysql from .ASPX -- Permission Problems?

Our mysql instance occaisionally locks up during backups. Currently we must VPN into the corporate network (to obtain work I.P.), remote desktop into the server, open the task manager, and manually kill the mysqld-nt.exe process. Instead of doing…
Sam
  • 9,933
  • 12
  • 68
  • 104
0
votes
1 answer

ProcessStartInfo input during execution

Assume that I execute a program with ProcessStartInfo: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"program"; startInfo.Arguments = "start"; Process.Start(startInfo); During execution,…
Maxim Mayers
  • 185
  • 2
  • 6
0
votes
2 answers

Command Syntax for Processstartinfo from variables

Can someone please help me out with the syntax here string sourcePath = @textBox2.Text.ToString(); string targetPath = @textBox1.Text.ToString(); System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"XCOPY C:\folder…
Zen
  • 29
  • 1
  • 1
  • 6
0
votes
2 answers

Existing file is not replaced using ProcessStartInfo.FileName = "xcopy"

I have used the following code to copy the folder from one path to another path. If the copying file is already exists it does not replace the existing file. Is there any command available with this like xcopy/replace? private static void…
Ponmalar
  • 6,871
  • 10
  • 50
  • 80
0
votes
1 answer

StartInfo.WindowStyle = ProcessWindowStyle.Hidden is still not working

ProcessStartInfo proc = new ProcessStartInfo(); proc.FileName = @"C:\\Windows\\System32\\RunDll32.exe"; proc.Arguments = "shell32.dll,Control_RunDLL inetcpl.cpl,Internet,4";//open Internet Properties window proc.WindowStyle =…
vyclarks
  • 854
  • 2
  • 15
  • 39
0
votes
3 answers

ProcessStartInfo arguments

I have a process, which takes some arguments. I want it to start from C#. I have tried the same arguments in shortcut and it works. On the other hand, in c# it doesnt, so here are the arguments. The argument format is correct, but i get a wrong…
user1422473
  • 117
  • 1
  • 3
  • 9
0
votes
1 answer

How to check if the process ended and then execute the next command in C# ProcessStartInfo?

I have a piece of code that runs command line and do some stuff as beneath: ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "CMD.EXE"; System.Console.WriteLine("please insert the path of working directory"); …
0
votes
2 answers

Printing Files silently without opening them

Possible Duplicate: .NET: How to print files w/o opening them I want to print my files discreetly without opening them I've been told to do this : ProcessStartInfo psi = new ProcessStartInfo(documentFileName); psi.Verb =…
Joy
  • 1,707
  • 7
  • 29
  • 44
0
votes
2 answers

process.startinfo.RedirectStandardOutput gives exception and process.waitforexit() hangs C# application

using process i am getting an exception while using process.StartInfo.RedirectStandardOutput = true; the exception is below "StandardOut has not been redirected or the process hasn't started yet." i am using process.WaitForExit…
Kanvas
  • 165
  • 2
  • 7
  • 23
0
votes
2 answers

Passing arguments to ProcessStartInfo class

i want to call the command prompt command using Process.Start and then using StandardOutput i want to read using StreamReader in my application but when i run the below program, in the MessageBox i just find the path till Debug, my command which i…
Abbas
  • 4,948
  • 31
  • 95
  • 161
1 2 3
17
18