AppCtrlScript

MAY Computer

Help

CNV2LEGALFILENAME

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

Eliminates all extra characters of a string that may not be contained in a filename.

You will need this command if you want to write to files where the filename comes from other sources - for example from registry values, inifiles or from somewhere else where it is possible that these values contain characters which are invalid for filenames. Such characters are for example: ":", """, ">", "<", "*", "?", "/", "|". All these characters are converted to "_".

Syntax

CNV2LEGALFILENAME <VariableName>[, <FileName>] 

Part

Description

<VariableName> Name of the script variable where the result should be stored in.
<FileName> Optional current desired filename. If missing the current value of the destination variable is considered to be the desired filename.