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

  • Home
  • SEARCH
  • 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 8421059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:02:17+00:00 2026-06-10T03:02:17+00:00

I am looking for the shortest command that would download a file (http) and

  • 0

I am looking for the shortest command that would download a file (http) and execute it on Windows.

We assume that the user executing the command is local Administrator and that you cannot use any tools that are not available by default on Windows.

It must work with: Windows 7 and Windows 2008. Extra kudos if someone gives a solution that also works with Windows XP and Windows 2003.

Reasoning: that for deploying stuff on different Windows machines. Using WMI or other methods is not an option because these are not enabled by default and also because machines can be inside our outside a domain, which makes the problem more complex, especially.

Note: If this cannot be done in a command line, a script will do. Let’s assume that the file to be downloaded is located at “http://example.com/setup.exe” and that you want to run it with “-y” parameter after it is downloaded.

  • 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-10T03:02:18+00:00Added an answer on June 10, 2026 at 3:02 am

    You specified http, so using ftp command in command line would not be ok? Maybe cscript + VB then?

    To download file:
    https://serverfault.com/questions/29707/download-file-from-vbscript

    To run file:

    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run (strHDLocation & "-y")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for shortest solution for the following problem: I would like to
I'm looking for a means to prove that the bicriteria shortest path problem is
I am looking for the shortest amount of code possible that will get the
i'm looking for an algorithm that finds the shortest path between two vertices (i
I'm looking for an equivalent of: for(_ <- 1 to n) some.code() that would
I'm looking at this question and in it is a link to http://hacks.mozilla.org/2011/03/the-shortest-image-uploader-ever/ which
Looking for a control that allows to select one text value at a time
Looking for a way to get path of file (and then process it in
I'm looking to find a way to in real-time find the shortest path between
I'm looking for the DRYest, most conventional, and shortest way to write this helper.

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.