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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:15:04+00:00 2026-06-16T23:15:04+00:00

Possible Duplicate: Load an EXE file and run it from memory using C# I

  • 0

Possible Duplicate:
Load an EXE file and run it from memory using C#

I am using the WebClient class to download a .exe from a web server. Is there a way that I can run the .exe without saving it to disk first?

For the purpose of completeness let me show you what I have so far.

Here is the code I use to start the download:

WebClient webClient = new WebClient();
webClient.DownloadDataCompleted += new DownloadDataCompletedEventHandler(webClient_DownloadDataCompleted);
webClient.DownloadDataAsync(new Uri("http://www.somewebsite.com/calc.exe"));

And in the (webClient_DownloadDataCompleted) method I simply grab the bytes from the parameter e:

private void webClient_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
{
    Byte[] downloadedData = e.Result;
    // how to run this like a .exe?
}

Thank you.

  • 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-16T23:15:05+00:00Added an answer on June 16, 2026 at 11:15 pm

    If your .exe is a .NET program, you can load an assembly and run its entry point.

    Otherwise, while there are ways to do it, I can’t see the problem with saving a file in temporary directory and running it from there which is so much less painful.

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

Sidebar

Related Questions

Possible Duplicate: I want to load the data from XML file and show in
Possible Duplicate: android reading from a text file So I need to load text,
Possible Duplicate: SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder error I am using eclipse juno
Possible Duplicate: load content from external page into another page using ajax/query May be
Possible Duplicate: JQuery ajax cross domain I need to load content from another websites
Possible Duplicate: Slow Android emulator I am using Eclipse to load the Android project
Possible Duplicate: How can i load the different xibs for single class depends on
Possible Duplicate: Wait for fonts to load before rendering web page I am Adding
Possible Duplicate: Problem when loading php file into variable (Load result of php code
Possible Duplicate: load file within a jar Finally, I made my jar file work

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.