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

Change the current directory of Word.

  

Syntax

 

CHGVAR

VAR(&CMD) VALUE('WCHDIR')

CHGVAR

VAR(&PARM1) VALUE('Directory="Directory path"')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1

Directory: Specifies the directory path from which Word will look for documents or other files, when the full path will not be specified.

This search path is also used by some Word directives: IncludeText, IncludePicture, ...

 

 

Example

 

CHGVAR

VAR(&CMD) VALUE('WCHDIR')

CHGVAR

VAR(&PARM1) VALUE('Directory ="%TEMP%"')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)