PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > CHKDIR command
CHKDIR command

Allows to verify if a Windows directory exists.

248 characters max for the directory path.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('CHKDIR')

CHGVAR

VAR(&PARM1) VALUE('

Dir="Directory path to verify"

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1
or
Parm2

Dir : Complete path of the directory to verify.

 

 

 

RESULT

TRUE : if the directory exists.

FALSE : if the directory does not exist.

 

 

 

Example

 

LNCCMDR    CMD(CHKDIR) +                                 

              PARM1('DIR="C:\AURADATA\SUPPORT\TKM"') +

              RESULT(&RES)                                

LNCCMD     CMD(NOP) PARM1(&RES)