5.42.11 LIST

The LIST command is used to return a list of files in the specified folder.

The supplied working list can be either one, two or five fields.

For a one field list, each entry has the name.

For a two-field list, each sorted entry has type and name.

For a five-field list, each sorted entry has the type, date, time, size and name.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

LIST

SERVER

value

Optional: File server.

DOMAIN

value

Optional. Windows domain.

USER

value

Optional. User

PASSWORD

value

Optional. Password

PATH

value

Mandatory. Windows server folder.

 

Example

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('LIST PATH(/Shared/Data) SERVICE_LIST(TYPE,FDTE,FTME,SIZE,FILE)')) TO_GET(#JSMSTS #JSMMSG #WRKLST)