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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:22:25+00:00 2026-06-02T05:22:25+00:00

How can I do a function, that allow do the download of a file

  • 0

How can I do a function, that allow do the download of a file in C: ?

For example, when the link is clicked, trigger a javascript function that will open the file or made download.

I’m trying this,

But it execute the program, I need that execute a download!

   if (url == "Supremo") {
       var oShell = new ActiveXObject("WScript.Shell");
       var prog = "C:\\inetpub\\wwwroot\\admin.redenetimoveis.com\\San\\up\\arquivos\\Supremo.exe";               
       oShell.run('"' + prog + '"', 1);
       return false;
   }
  • 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-02T05:22:26+00:00Added an answer on June 2, 2026 at 5:22 am

    To get a user to download an exe file, you simply need to point them to the url with something like

    window.location = 'http://admin.redenetimoveis.com/Supremo.exe';
    

    As per the comment below, simply make an anchor tag that points to the file:

    <a href="http://admin.redenetimoveis.com/Supremo.exe">Download Executable</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any javascript function that can encrypt data: For example i want to
I have a function that I'm using to download a file on the server
Hello Im looking for a function that will allow me limit number of characters
I'm attempting to make a function that will allow users to delete posts they
I need a function that can return the difference between the below two dates
I have a function that can accept any number of arguments... const getSearchFields =
How do I write a function that can accept unlimited number of parameters? What
I just want a function that can take 2 parameters: the URL to POST
Is there a function that can round a float in Fsharp? Something like round(3.21156,3)
I need a function that can parse both 1,123.12 and 1.123,12 to 1123.12 There

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.