Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6617425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:42:10+00:00 2026-05-25T20:42:10+00:00

I am trying to run an exe from C# ProcessStartInfo si = new ProcessStartInfo

  • 0

I am trying to run an exe from C#

 ProcessStartInfo si = new ProcessStartInfo
 (
     ExePath, InputImageFilePath +" "+ 
     numericUpDownResize.Value +" "+
     numericUpDownPad.Value+" "+
     numericUpDownWindow.Value
 );
 si.UseShellExecute = true;
 si.CreateNoWindow = true;
 si.WindowStyle = ProcessWindowStyle.Normal;
 si.Verb = "runas";

 Process process = Process.Start(si);
 process.WaitForExit();               

 int indexOfLastSlash = ExePath.LastIndexOf(@"\");
 string outputFilePath = ExePath.Substring(0, indexOfLastSlash);
 OutputImage = new Bitmap(outputFilePath + @"\output.jpg");

When I run the exe from command line prompt, it works fine as expected and the JPEG is created. But when I try the C# program, after allowing the program run once through UAC, I see the command line prompt open and display the status. But the output image is not produced.

Is there something that I miss?

Update

After adding the Manifest as suggested by Moxplod, I was going through the security settings. Does the highlighted box I have shown need to be checked green like the other few?
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:42:11+00:00Added an answer on May 25, 2026 at 8:42 pm

    Does program produce output image in the current directory? Because you are checking for image in the directory that contains executable which may be different from current directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run various commands using psexec.exe from Windows Sysinternals . What I
I'm trying to run elevated process, say, file_copier.exe, from another host process with ShellExecuteEx
I am trying to run a .exe from the server side on GWT but
I'm currently trying to run MSTest.exe from NCover, but I believe the question could
I am trying to run a .exe file from Javascript. This is what I
I'm trying to run genhtml using perl.exe from Cygwin in Windows. I have installed
I am trying to run a 64 bit executable (java.exe) from our 32-bit .NET
I'm trying to conditionally run an exe from a batch file conditionally upon another
I am trying to run a external exe from a powershell script. This exe
I am trying to run a .Net application's .exe file from bin/Debug folder but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.