Commands & Syntax > Commands > File Mainpulation >

www.perfectkeyboard.com

 

DELETE - < filedel >() ... [Free]

 

File DELETE
<filedel>("Source",Subfolders,Unused,Retries,Variable for number of processed files,Variable for number of failures,"Log errors",Show progress)
Available in: Free edition

This command deletes specified file(s).

 

#

Parameter name

Parameter description

1

Source

Full path to the file to delete (e.g., "c:\mydocuments\original.doc"). The file path can contain wildcard characters (*?). In such the case all the files matching the pattern are deleted.

2

Subfolders

Takes effect only if the File contains wildcard characters. If 1, files from all the sub directories are deleted as well (if matching the pattern). If 0, files from sub directories are not deleted.

3

Unused

Must be 0.

4

Retries

 

5

Variable for number of processed files

 

6

Variable for number of failures

 

7

Log errors

 

8

Show progress

 

 

Example (Macro Steps):

 

1

<#> <#> This macro deletes the file you select

2

Macro execution: ONLY COMMANDS

3

Variable OPERATION "SELECT_FILE" (Variable for result = vFile, Input text/variable = , Parameter 1 = Select File, Parameter 2 = , Parameter 3 = 0)

4

IF STRING _vCanceled==1

5

Macro EXIT

6

ENDIF

7

File DELETE "vFile" (Subfolders = No, Unused = 0, Retries = , Variable for number of processed files = , Variable for number of failures = , Log errors = , Show progress = )

Example (Plain Text):

 

<#> This macro deletes the file you select

<#>

<cmds>

<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")

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

<filedel>("vFile",0,0)