Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know if there is a utility built-in to Windows Server 2003 that I can use from the command line to download a file using only one command.
Basically I know that I can download from ftp using the ftp utility but in order to do that I need to do first ftp open and then pass the other commands so it doesn't help me because I need to do perform the download only from one command. The download may be performed through http, ftp or any other protocol.

OS Name: Microsoft(R) Windows(R) Server 2003 Enterprise x64 Edition
OS Version: 5.2.3790 Service Pack 2 Build 379
share|improve this question

Nothing built-in I'm aware of. If you have PowerShell installed you can use System.Net.WebClient for that, even though you may still want a wrapper for ease of use:

$wc = New-Object Net.WebClient
$wc.DownloadFile('http://...', file)

But if you first need to install something, then there are many other options out there, too.

share|improve this answer

The Windows ftp client can use batch files in non-interactive mode.

Create a plain-text file named sitename.scr containing the syntax below. This example connects to as the user "jscott" with the password "mypass" and downloads binary file named "somefile". You will, of course, need to customize it to match your requirements.

get somefile

You execute the following command ftp -s:sitename.scr to run the batch file non-interactively. If the file is not binary, change bin to asc. You may need to specify the full path in the filename.

For downloads that only use HTTP, get a utility named wget.

share|improve this answer

tftp is perfect for this stuff! it requires a tftp server, but means you can do one line file download commands.

It's been removed from the most recent MS server and client OS's because it makes downloading & installing virus payloads so easy!

tftp -i x.x.x.x get file.txt
share|improve this answer

I prefer to use ncftp for this kind of thing:

share|improve this answer

wget and curl (open source utilities) should each be able to meet your needs.



(Despite the "haxx" domain name, it is a very safe and common open-source tool.)


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.