The anonftp.exe utility serves to manage the anonymous FTP service. The utility allows the following operations:
Syntax
anonftp.exe <command> [<domain_name>] [
<option1><param> [<option2><param>]…[<option N><param>]
]
Example
The following command line enables the anonymous FTP service on the domain1.com domain, restricts the number of simultaneous FTP connections to 15, allows creating subdirectories within the incoming directory, and restricts the download bandwidth to 100 KB.
>anonftp.exe --update domain1.com -status true -max_connects 15 -incoming true -bandwidth 100
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Updates the anonymous FTP settings for the specified domain. |
To update somewhere.com by enabling the anonymous FTP service on it: >anonftp.exe --update somewhere.com -status true or >anonftp.exe -u somewhere.com -status true |
|
|
Retrieves the information about anonymous FTP settings set for the specified domain. |
To get the info on anonymous FTP settings on somewhere.com: >anonftp.exe --info somewhere.com or >anonftp.exe -i somewhere.com |
|
|
Displays help on the use of the utility. |
To see the help info on the use of this utility: >anonftp.exe -–help or >anonftp.exe –h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Enables/disables the anonymous FTP service on the specified domain. |
To enable the anonymous FTP service on somewhere.com: >anonftp.exe --update somewhere.com -status true |
|
|
Displays the login message. |
To display the 'Welcome!' login message when logging to the anonymous FTP service on somewhere.com: >anonftp.exe --update -status true -message true -message-text "Welcome!" |
|
|
Specifies the login message text. |
|
|
|
Enables/disables upload to the incoming directory. Is set to false by default. |
To enable upload to the incoming directory: >anonftp.exe --update somewhere.com -status true -incoming true |
|
|
Allows creating directories in the incoming directory. |
To allow creating directories in the incoming directory: >anonftp.exe --update somewhere.com -status true -incoming-dirs true |
|
|
Enables/disables downloading from the incoming directory. |
To allow download from the incoming directory: >anonftp.exe --update somewhere.com -status true -incoming-downloads true |
|
|
Restricts the disk space used by the incoming directory. If set to -1, the disk space is unlimited. |
To restrict the disk space for the incoming directory to 900 KB: >anonftp.exe --update somewhere.com -status true -incoming-limit 900 |
|
|
Restricts the number of simultaneous connections. If set to -1, the value is unlimited. |
To restrict the number of simultaneous FTP connections to 4: >anonftp.exe --update somewhere.com -status true -max-connects 4 |
|
|
Restricts the download bandwidth. If set to -1, the value is unlimited. |
To restrict the download bandwidth to 50 KB: >anonftp.exe --update somewhere.com -status true -bandwidth 50 |