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…
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…
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 =…
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…
I have been trying to call a process inside a docker container.
ProcessStartInfo pStart = new ProcessStartInfo();
pStart.FileName = fileName;
pStart.Arguments = arguments;
pStart.WindowStyle =…
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",
…
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…
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…
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,…
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…
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.…
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…
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…
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…
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…