ftp DELETE DIRECTORY - < ftp_deldir >() ... [Pro]
ftp DELETE DIRECTORY <ftp_deldir>("Unused","Delete","Login name","Password","Silent") Available in: Professional edition
|
Deletes directory on a remote FTP server.
|
#
|
Parameter name
|
Parameter description
|
1
|
Unused
|
Must be empty.
|
2
|
Delete
|
Full path to the remote directory to delete (e.g., ftp://softwareutilities.com/dir).
|
3
|
Login name
|
User login name. If empty the "anonymous" is considered.
|
4
|
Password
|
User name login password.
|
5
|
Silent
|
Silent mode. If set to 1 then the operation progress window is not displayed.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro deletes directory on FTP server
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
Form FIELD "Remote directory to delete:" of type "Text edit" (Default value=, Variable to save field value=vRemoteDir, Form identifier=fm1)
|
4
|
Form FIELD "User:" of type "Text edit" (Default value=, Variable to save field value=vUser, Form identifier=fm1)
|
5
|
Form FIELD "Password:" of type "Text edit" (Default value=, Variable to save field value=vPassword, Form identifier=fm1)
|
6
|
Form OPEN "fm1", Window title="FTP: Delete Directory"
|
7
|
IF STRING _vCanceled==1
|
8
|
Macro EXIT
|
9
|
ENDIF
|
10
|
ftp DELETE DIRECTORY "vRemoteDir" (Login name=vUser)
|
|
Example (Plain Text):
<#> This macro deletes directory on FTP server
<#>
<cmds>
<form_item>("fm1","Remote directory to delete:","EDIT","","vRemoteDir")
<form_item>("fm1","User:","EDIT","","vUser")
<form_item>("fm1","Password:","EDIT","","vPassword")
<form_show>("fm1","FTP: Delete Directory","shell32.dll",31)
<if_str>("_vCanceled==1")<exitmacro><endif>
<ftp_deldir>("","vRemoteDir","vUser","vPassword")