5.42.6 CHECKFOR

The CHECKFOR command is used to check for the existence of a file or folder on the Windows file server.

If a two-field working list is also used with the command, a list of file/folder attributes are returned.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

CHECKFOR

SERVER

value

Optional: File server.

DOMAIN

value

Optional. Windows domain.

USER

value

Optional. User

PASSWORD

value

Optional. Password

PATH

value

Mandatory. Windows server file for folder.

 

Example

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('CHECKFOR PATH(/Shared/data.txt) SERVICE_LIST(NME,VAL)') TO_GET(#JSMSTS #JSMMSG)