Questions tagged [processstartinfo]
269 questions
0
votes
1 answer
C# System.Diagnostics.Process doesn't work properly
I am using System.Diagnostics.Process in a Windows service application. The application that I call uses DropBox API and Google Drive API. When I login on Google Drive or DropBox it is supposed to open the Web browser and allow access to Drop or…

luis alberto juarez
- 131
- 1
- 9
0
votes
1 answer
Is there a way to use ProcessStartInfo that will create a shortcut in the Windows recent items jump list?
I'm opening a PDF file from a directory under the %username%\My Documents folder location using ProcessStart and ProcessInfoStart. If I open the file programmatically, the pdf does not show under the…

Jake_TheCoder
- 57
- 1
- 9
0
votes
1 answer
How to open a local application using Cortana skills
I've been trying to do this since this morning and it doesn't seem to be working for me.
The requirement is to have the user invoke cortana ana ask her to open an application - let's call it app1.
I created an azure bot based on the EchoBot and…

AngelicCore
- 1,413
- 3
- 22
- 40
0
votes
0 answers
How to find openjdk version from C#?
I'm trying to find the version of the OpenJDK installed in the system through C# code.
I tried the following, it works for Oracle's JDK, but not for OpenJDK
try
{
ProcessStartInfo psi = new ProcessStartInfo();
…
0
votes
1 answer
ASP.Net core and ProcessStartInfo
I need to start an application (a simple test.exe) from ASP.net core web application using ProcessStartInfo.
The application starts using these parameters:
var startInfo = new ProcessStartInfo
{
FileName = "test.exe",
…

Lucia Minerba
- 119
- 1
- 8
0
votes
0 answers
Elevating permission error while running batch prom code
I am trying to remove old certificates from the os so i wrote a method for that:
public ActionResult DeleteOldCertificates(Session session)
{
try
{
return (DeleteAutority(session) == ActionResult.Success
…

szpic
- 4,346
- 15
- 54
- 85
0
votes
1 answer
C# MVC Core Print Excel file using Process(), PDF works fine but Excel keep loading
I am trying to print Excel(.xlsx) file via my web application by clicking a button.
Everything works fine on my local, however when I upload to IIS, the moment I click the button. The page will just keep loading.
string…

Sarah
- 329
- 5
- 21
0
votes
0 answers
How to capture output of Python script in C# as it is printing text while running?
I have following Python script :
import time
for x in range(10):
print(x)
time.sleep(0.05)
I want to run this script and capture its output while it is running.
I used the following C# code but it does not print any number until it…

PCG
- 2,049
- 5
- 24
- 42
0
votes
1 answer
Why do I get "No process is associated with this object." when calling process.Close() or process.Kill()?
I have a C# program that is launching TShark.exe which is the background equivalent of WireShark. I would like to close all instances that I start. It appears to start just fine, run in the background and log network traffic to a file as it…

Curtis
- 5,794
- 8
- 50
- 77
0
votes
1 answer
How to redirect error but not output and keep text written to console in the right order? (F#)
I have two programs that I am running, one of which is run as a child process by the other. When the child process writes to stderr, I want to capture that in the parent process so I can tell if there was an error, and then log the error message to…

tjohnson
- 1,047
- 1
- 11
- 18
0
votes
2 answers
How can I launch a folder whose name contains a comma, using ProcessStartInfo in C#?
I have an app that queries a database for the location of a nested folder used for a task, and opens this folder (using the ProcessStartInfo class to launch explorer.exe and pass in the folder name as an argument).
This works fine except for a…

Daniel Otto Kellett
- 21
- 1
- 3
0
votes
0 answers
ProcessStartInfo.Verbs for .png and .jpg are only "printto"
I am trying to open or edit files with the ProcessStartInfo class. If I use .docx, .txt or similar it works. Only with .jpg and .png there are problems.
I'm using var psi = new ProcessStartInfo(someJpgOrPngFile) and in the psi.Verbs is only the…

Hadda
- 47
- 2
- 12
0
votes
0 answers
ProcessStartInfo - Verb not working
I used
ProcessStartInfo startInfo = new ProcessStartInfo(filepath);
if (File.Exists(filepath))
{
var i = 0;
foreach (String verb in startInfo.Verbs)
{
// Display the possible verbs.
Console.WriteLine(" {0}. {1}",…

James
- 21
- 8
0
votes
2 answers
double quote error when using ProcessStartInfo in C#
I'm trying to open run a few arguments using cmd.exe from ProcessStartInfo in C#
but my folder navigation needs to include double quotes eg. "C:\this is\my\folder site"
as you see the reason for using double quotes is because the folders have space…

Victor A Chavez
- 181
- 1
- 19
0
votes
1 answer
Using Process.StartInfo.UserName
I have a website that has a linkbutton that opens a game :
Process game= new Process();
game.StartInfo.FileName = HttpContext.Current.Request.MapPath("~/iFarkle.exe");
game.StartInfo.UserName = Session["Username"].ToString();
…

Or Betzalel
- 2,427
- 11
- 47
- 70