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 8263999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:18:05+00:00 2026-06-08T04:18:05+00:00

I am trying use Process.StartInfo() to launch (with elevated privileges) an exe file I

  • 0

I am trying use Process.StartInfo() to launch (with elevated privileges) an exe file I built.
I tried the following:
1. Add the .exe file as embedded resource.
2. Use the embedded file as follows:

Assembly _assembly;
Stream _fileStream;
_assembly = Assembly.GetExecutingAssembly();
_fileStream = _assembly.GetManifestResourceStream("projectNamespace.filename.exe")

3.Build a new file from the _filestream, and run it.

But i’m not allowed to create an instance of the static File type.

Is there a better way to do this?

  • 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-06-08T04:18:07+00:00Added an answer on June 8, 2026 at 4:18 am

    Add the file you want to run to the project. Right click the file and set “Build Action” to “Content” in the solution explorer.

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

Sidebar

Related Questions

I'm trying to use MapViewOfFile in a 64 bit process on a file that
I'm trying to do the following in C#: Open a new process (notepad.exe) Enter
I'm trying to use a string variable in StartInfo.Arguments of a process, but can't
I'm trying to run a process with elevated privileges - specifically OpenVPN, which requires
I'm trying to use atexit in a Process , but unfortunately it doesn't seem
I'm trying to use Runtime.exec to start a copy of the current process. I
I am in the process of evaluating FindBugs and am trying to make use
I am trying to automate a repetitive manual process for which I use WireShark:
I am trying to spawn a process using Runtime.exec. I want to use my
I'm working on a .NET Windows application that will use Process.Start to launch another

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.