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

When a mail merge (WMAILMERGE command) ends in error with Launcher, Microsoft Word may disable the temporary data file (%TEMP%\ LNC00xtmp.txt). From then on, all subsequent mail merges will not work.

In the Launcher trace, you will have the following message:
*REJ800706be:The remote procedure call failed

In addition, in the Windows Event Viewer, you will have this information:

 

Une image contenant texte, capture d’écran, ligne

Le contenu généré par l’IA peut être incorrect.

 

The CLEANREG command is used to reactivate temporary data files.

Note that this processing is done automatically when the Launcher service starts. This command is therefore only useful when Launcher is launched as an application.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('CLEANREG')

CHGVAR

VAR(&PARM1) VALUE('

Appli="Word"

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

 

 

Parameters

 

Parameters

 

Parm1 or Parm2

Appli: Currently the only possible value is: Word.

 

 

Example

 

CHGVAR VAR(&CMD) VALUE('CLEANREG')

CHGVAR VAR(&PARM1) VALUE('Appli="Word"')

CHGVAR VAR(&PARM2) VALUE(' ')

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

&PARM2 &RESULT)