Basic usage:
URL2File <URL>
[<FileName>]
For example, to retrieve the web (HTTP) URL http://www.chami.com/url2file/test.htm and save its content to temp.htm, run the following command
(from the Command Prompt/DOS Prompt within Windows 95/98/NT for Intel compatible
processors):
URL2File
http://www.chami.com/url2file/test.htm temp.htm
To retrieve the file transfer protocol (FTP) URL ftp://ftp.chami.com/README and save its content to README.txt, run the following command:
URL2File
ftp://ftp.chami.com/README README.txt
More examples on how to use URL2File:
- How to create a
batch file to download multiple files
Advanced usage:
URL2File
<URL> [<FileName>]
[-d]
[-z] [-h] [-b] [-r <referring URL>]
[-u <login user name>] [-p
<login password>]
[-x <proxy address>] [-y <proxy
port>]
[-s <proxy user name>] [-t
<proxy password>]
[-a <user agent string>] [-n
<sender>]
[-o
<timeout in seconds>]
[HTTP] = Applies to web URLs; [FTP] = Applies to FTP URLs
URL : URL of the web page
(HTTP) or file (FTP) to retrieve. Format of the URL:
protocol://[user[:password]@]server[:port]/path[/file]
URL2File URL
All following parameters are optional.
FileName : File name to use to
save retrieved content.
URL2File URL output.htm
-d : [HTTP] [FTP] Enable debug mode -- display warnings and other miscellaneous information.
This switch must be specified before other parameters.
URL2File -d URL
-z : [HTTP] [FTP] Suppress error messages -- won't display critical errors.
URL2File -z URL
-h : [HTTP] Display web server's response headers, such as content type/size, cookies,
modified and expiration dates, HTTP protocol, web server type, etc.
URL2File -h URL
-b : [FTP] Retrieve the file using non binary transfer mode (also known as ASCII file
transfer mode).
URL2File -b URL
-r : [HTTP] Specify a custom referring URL.
URL2File -r
"ReferringURL" URL
-u : [HTTP] [FTP] Login user name (if required by the web server). A login password must
also be specified.
The default user name for FTP URLs is "anonymous" It is blank for HTTP
URLs.
-p : [HTTP] [FTP] Login password.
The default password for FTP URLs is "guest@unknown.org" It is blank for
HTTP URLs.
URL2File URL -uYourName
-p"pword"
-x : [HTTP] Proxy server address.
-y : [HTTP] Proxy server port.
URL2File URL -xPROXY -y3128
-s : [HTTP] Proxy server login user name. Proxy server address and port must also be
specified.
-t : [HTTP] Proxy server login password.
URL2File URL -xPROXY -y3128
-sProxyUsername -tProxyPassword
-a : [HTTP] Custom user agent string.
URL2File URL -a
"Mozilla"
-n : [HTTP] Specify a custom "From:" field in the web server request header.
URL2File URL -n
"xyz"
-o : [HTTP] [FTP] Timeout value in seconds. Downloading will be aborted if not completed
within the specified amount of time. The default value of 0 will disable the timeout
function.
URL2File URL -o 30