用于下载XLS文件并将其保存到目录的批处理脚本

I am trying to write some batch script to download and save an XLS file from a URL. I am able to down load the file by using

@ECHO OFF start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE url link exit

I would now like to save these files to a folder or directory.

Any help anyone could provide here would be greatly appreciated.

There are at least two ways to do it.

  1. Like Buddy suggested, use a command-line downloader, for example wget.

  2. Under Linux, you can run PHP directly (even without a webserver). See PHP: Command Line PHP on Microsoft Windows in PHP manual.

Don't run a browser, or - even worse - IE, just to run a PHP script.