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
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:But if you first need to install something, then there are many other options out there, too.
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!
I prefer to use ncftp for this kind of thing: http://www.ncftp.com/
wget and curl (open source utilities) should each be able to meet your needs.
wget: http://www.gnu.org/software/wget/
curl: http://curl.haxx.se/
(Despite the "haxx" domain name, it is a very safe and common open-source tool.)
-Waldo