processstartinfo Questions
23
Solved
I have the following code:
info = new System.Diagnostics.ProcessStartInfo("TheProgram.exe", String.Join(" ", args));
info.CreateNoWindow = true;
info.WindowStyle = System.Diagno...
Aurangzeb asked 26/9, 2008 at 13:46
3
Solved
But it doesn't work -meaning the java code is not executed.
Although the batch file runs fine when clicked in Windows explorer or when run in command line ..
Since this works fine when the batch f...
Gaze asked 4/3, 2010 at 20:59
6
Solved
I wrote a quick and dirty wrapper around svn.exe to retrieve some content and do something with it, but for certain inputs it occasionally and reproducibly hangs and won't finish. For example, one ...
File asked 13/1, 2009 at 16:15
4
Solved
I have 2 programs (.exe) which I've created in .NET. We'll call them the Master and the Worker. The Master starts 1 or more Workers. The Worker will not be interacted with by the user, but it is a ...
Aphonic asked 10/6, 2010 at 2:14
11
Solved
I'm trying to execute a batch file in C#, but I'm not getting any luck doing it.
I've found multiple examples on the Internet doing it, but it is not working for me.
public void ExecuteCommand(st...
Magistrate asked 1/4, 2011 at 22:0
1
Solved
I'm trying to run python script from Azure webjob. This is what I've done following this link
Access the kudu tool via the url https://<webapp name>.scm.azurewebsites.net and installed Pyth...
Harlow asked 7/9, 2019 at 2:11
1
Solved
I need to call batch-files from my UWP Application. The way to do seems to be Process.Start(), but it says it does not find the file even tough it is definitly there when I follow the path it outpu...
Haukom asked 27/6, 2019 at 8:54
1
I realize this looks like a lot of other questions out there, but I looked at all of them for hours and never found the real answer I needed, so hear me out:
This is for a .NET C# console applicat...
Vivia asked 12/12, 2017 at 21:33
3
Solved
I am trying to execute MSBuild programmatically and can't execute the following command:
string command = string.Format(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe ""{0}\{1}.csproj...
Remorseless asked 31/8, 2011 at 23:36
2
Solved
I am trying to open and print files with the ProcessStartInfo class. (File can be anything but let`s assume it is a PDF File)
ProcessStartInfo pi = new ProcessStartInfo(file);
pi.Arguments = Pat...
Dioptrics asked 4/8, 2015 at 12:31
3
Solved
I want to start a child process (indeed the same, console app) with elevated privileges but with hidden window.
I do next:
var info = new ProcessStartInfo(Assembly.GetEntryAssembly().Location)
{
...
Rahel asked 29/8, 2010 at 19:32
2
Solved
I know that you can run a process with a given username/password in the following way:
var processInfo = new ProcessStartInfo
{
WorkingDirectory = workingDirectory,
FileName = "a name",...
Roley asked 28/7, 2013 at 14:2
3
Solved
I am starting a new instance of a console application from my .NET code using the Process.Start() method. I was wondering if I can specify the title of the console window hosting the spawned proces...
Umberto asked 2/12, 2009 at 16:24
6
Solved
I'm trying to run a process as a different user that has Administrator privilege in 2 different computers running Vista and their UAC enabled but in one of them I get a Win32Exception that says "Th...
Rashidarashidi asked 13/6, 2009 at 11:50
3
Solved
Using C#, I am trying to pass command-line arguments to a new process using Process.Start():
string path = @"C:\Demo\Demo.exe";
string arguments = "one two three";
ProcessStartInfo startInfo = new...
Romona asked 2/6, 2014 at 18:15
2
I have a program in Debian which needs root privileges and myuser has to run it, but I have to do the call from a .NET application (C#) running in mono.
In /etc/sudoers, I have add the line:
myuse...
Schoof asked 1/4, 2014 at 16:1
1
Solved
From an application that is not being run as administrator, I have the following code:
ProcessStartInfo proc = new ProcessStartInfo();
proc.WindowStyle = ProcessWindowStyle.Normal;
proc.FileName =...
Orange asked 4/6, 2013 at 19:47
1
I need change of properties of windows User Account Control.
(Program Name, File Origin, Verified Publisher)
Is This Possible?
Counterblast asked 18/11, 2013 at 22:23
2
What is the environment variable concept?
In a C# program I need to call an executable. The executable will call some other executables that reside in the same folder. The executables rely on the ...
Edana asked 28/1, 2013 at 0:16
1
Solved
I have code that uses ProcessStartInfo and Process to invoke another script, and to return the output of that script.
Unfortunately, I am getting errors, and I am unsure how to troubleshoot them.
...
Sympathetic asked 30/8, 2013 at 19:50
1
I am trying to execute PSExec from my Asp.Net Web application to connect to a remote server. Somehow it gives "Access Denied Error -5" with no credentials set, and by setting the credentials in the...
Zakarias asked 30/4, 2013 at 15:35
2
Solved
How can I control the initial WindowState (Normal, Minimized, Maximized) of a WPF main window from a desktop shortcut?
The "Run:" combobox of the shortcut's properties dialog let's me choose betwe...
Miriam asked 11/8, 2011 at 13:6
3
Solved
I am trying to launch the default application registered for an extension specifying an additional argument:
ProcessStartInfo p = new ProcessStartInfo();
p.Arguments = "myargument";
p.FileName...
Kagu asked 16/2, 2011 at 13:47
2
Solved
I suspect this may apply to multiple programming languages, but in this context I am referring to .NET.
When I use System.Diagnostics.Process.Start, I can include, as an argument, a System.Diagnos...
Perspicacity asked 8/9, 2011 at 23:11
2
Solved
I'm trying to create a .NET wrapper for media-file conversion using ffmepg, here is what I've tried:
static void Main(string[] args)
{
if (File.Exists("sample.mp3")) File.Delete("sample.mp3");
...
Christner asked 4/9, 2011 at 1:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.