Commands & Syntax > Commands > Networking/Web/E-mail >

www.perfectkeyboard.com

 

ftp DELETE - < ftp_delfile >() ... [Pro]

 

ftp DELETE
<ftp_delfile>("Unused","Remote file","Login name","Password","Silent")
Available in: Professional edition

Deletes file from a remote FTP server.

 

#

Parameter name

Parameter description

1

Unused

Must be empty.

2

Remote file

Full path to the remote file (e.g., ftp://softwareutilities.com/about.txt). The path can contain * and ? wildcards.

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 file from FTP server

2

Macro execution: ONLY COMMANDS

3

Form FIELD "Remote file to delete:" of type "Text edit" (Default value=, Variable to save field value=vRemoteFile, 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 File"

7

IF STRING _vCanceled==1

8

Macro EXIT

9

ENDIF

10

ftp DELETE "vRemoteFile" (Login name=vUser)

Example (Plain Text):

 

<#> This macro deletes file from FTP server

<#>

<cmds>

 

<form_item>("fm1","Remote file to delete:","EDIT","","vRemoteFile")

<form_item>("fm1","User:","EDIT","","vUser")

<form_item>("fm1","Password:","EDIT","","vPassword")

 

<form_show>("fm1","FTP: Delete File","shell32.dll",32)

<if_str>("_vCanceled==1")<exitmacro><endif>

 

<ftp_delfile>("","vRemoteFile","vUser","vPassword")