Questions tagged [processstartinfo]

269 questions
0
votes
3 answers

C# Get Session Processes Without Showing CMD Prompt

Current attempt at WTSEnumerateProcesses: [DllImport("wtsapi32.dll", SetLastError = true)] static extern Int32 WTSEnumerateProcesses( IntPtr serverHandle, // Handle to a terminal server. Int32 reserved, // must be 0 …
Bassie
  • 9,529
  • 8
  • 68
  • 159
0
votes
2 answers

c# .NEt 3.5 Unable to Hide CMD Window When Running a Process as User - Form Application

I am trying to run a bunch of processes in the background using the CMD prompt from my support application. I have successfully done this for standard commands, but when trying to run a command as an administrator (to retrieve and end processes),…
Bassie
  • 9,529
  • 8
  • 68
  • 159
0
votes
0 answers

What is the proper syntax for passing multiple arguments with StartInfo.Arguments?

My objective is to issue the following to a command line from within a C# Windows Forms application: load.exe --ip="192.168.1.88" C:\MyFiles\file1.txt C:\MyFiles\file2.txt The following is my current attempt and I have observed that it is not…
ngm_code
  • 141
  • 1
  • 9
0
votes
1 answer

Process Redirection vs Shell Redirection in C#

I'm trying get LibJPEG-turbo's executable cjpeg.exe (http://www.libjpeg-turbo.org/ with Windows official binaries) to work inside a DLL I'm creating to handle batch processing of large images. I'm using Visual Studio 2010 and .NET 4. The reason…
0
votes
0 answers

Cannot start process from IIS

the issue I'm facing is this: I'm trying to start AcrobatReader from my C# WebApplication using a Process. https://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx When I'm running the application in IIS Express(running…
Stefano Vuerich
  • 996
  • 1
  • 7
  • 28
0
votes
1 answer

Setup.exe with arguments in VB.NET

I don't know how to start setup.exe with any arguments. Actually a try this code but something goes wrong: Dim p As New ProcessStartInfo p.FileName = Application.StartupPath & "\Content\Office\2013_ALL\x86\setup.exe" p.Arguments =…
0
votes
1 answer

git->Process->git round trip text encoding

I'm trying to write a utility to migrate code from our custom source control to git. The 'commit' messages in the old system were added incrementally to a text file in the project path, so I'm using git to diff these files from one version to the…
Benjol
  • 63,995
  • 54
  • 186
  • 268
0
votes
0 answers

C#: Executing an EXE file

I read other answers to this, but cannot work mine. maybe because of the difference. The difference is that my hex file are on an external device and here is the hierarchy /home/root/myfolder/General and the EXE that I want to…
Cher
  • 2,789
  • 10
  • 37
  • 64
0
votes
1 answer

& operator string error with string of arguments to processStartInfo

I need to pass a string into the ProcessStartInfo for ffmpeg so that I can call the dim.Argument and have it append the strings and variables from code as I parse through the files. I have the current filename.mp3 that the code sees in…
0
votes
1 answer

Error while executing xcopy from C# code as different user

I am writing a small program to copy the files from one server to another and for this I am using xcopy command from the C# code. I want to execute the process as different user for which I am using the following code - string sourceLoc =…
Durgesh Sahu
  • 247
  • 1
  • 5
  • 19
0
votes
0 answers

Find process and attach to ProcessStartInfo to method

I am trying to manipulate Windows' Calculator. If my program finds an instance (which it does), it needs to provide the process' startInfo to TestStack's White framework for UIAutomation. However, I keep getting the following…
SILENT
  • 3,916
  • 3
  • 38
  • 57
0
votes
1 answer

ProcessStartInfo working on one computer but not running on another

The following code is running fine on my computer but it hangs on office computer ProcessStartInfo info = new ProcessStartInfo(); info.Verb = "print"; info.FileName = @"c:\temp\" + filename; info.CreateNoWindow =…
Hasan Zubairi
  • 1,037
  • 4
  • 23
  • 57
0
votes
2 answers

Open an exe file programmatically

I have a windows application which when you run ,first checks if there's a new version of the application. If there is a new version it downloads the exe then tries to run it. When it tries to run the exe, if the user did not run the application as…
Linda
  • 109
  • 1
  • 2
  • 12
0
votes
0 answers

RavenDb Smuggler error during multiple exports

I'm using C# to launch multiple process (ProcessStartInfo) which execute the Raven.Smuggler.exe (all at the same time). This is probably a bad practise (which I am changing soon). However I would like to know if the action of launching muliple…
goamn
  • 1,939
  • 2
  • 23
  • 39
0
votes
0 answers

ProcessStartInfo and JLine

Using ProcessStartInfo in Visual Basic, I want to redirect a Java application I/O handled by the JLine library. Output is ok, input doesn't work. I found Process.StandardInput.WriteLine Not working on Java.exe. OP solves the issue by stopping…
spongebob
  • 8,370
  • 15
  • 50
  • 83