Share via


ftp Protocol

Opens a file transfer session with the specified site address.

Syntax

ftp://[sUsername[:sPassword]@]sDomain

sUsername Optional. Specifies an existing account on the site.

sPassword Optional. (If sUsername is included.) Specifies the password of the account on the site.

sDomain Specifies the fully qualified domain name or IP address to the site.

Remarks

Sites with FTP servers might or might not allow anonymous connections. Depending on the site's configuration, the password does not always have to be included with the FTP protocol if the account name is required. The site will prompt you for login information as necessary.

Examples

The following sample demonstrates two ways to use the FTP protocol.

//Without specifying the user name and password. 

<a href="ftp://microsoft.com">
Microsoft's FTP Site
</a>

//Specifying the user name and password. For this example, an anonymous connection will be made. 

<a href="ftp://anonymous:anonymous@microsoft.com">
Microsoft's FTP Site
</a>