GetRandomFileName

Top  Previous  Next

 

The GetRandomFileName Special Function Command allows you to retrieve a random file name.

lamp Important: Special Function commands can only be used on the right hand side of a Variable Assignment command.

Command Syntax

 

GetRandomFileName,[Extension]

 

The comma character after the command is compulsory as is the Extension parameter.

 

Parameters:

 

Extension: A string representing the extension to apply to the generated file name, without a dot.

 

The Extension parameter is compulsory. If any required parameter is missing or invalid an error will be thrown.

 

Example:

 

Var:FileName=GetRandomFileName|tmp

 

See Also: Special Functions GetFileVersion GetRegistryValue