winShell.expandEnvironmentStrings

Syntax winShell.expandEnvironmentStrings (s)

Params s is a string containing environment strings to expand.

Action Expands the environment strings in s.

Returns A string containing the expanded environment strings.

Examples winShell.expandEnvironmentStrings ("%SystemRoot%\\system32\\cmd.exe")

   » "C:\\WINNTSVR\\system32\\cmd.exe"

winShell.expandEnvironmentStrings ("%SystemRoot%\\system32;%SystemRoot%;C:\\Program Files\\Mts")

   » "C:\\WINNTSVR\\system32;C:\\WINNTSVR;C:\\Program Files\\Mts"

winShell.expandEnvironmentStrings ("%bogus%\\system32")

   » "%bogus%\\system32"

Notes This verb is Windows-specific; it's implement by a VBScript script.

This verb requires that the Microsoft Script Control and Windows Scripting Host are installed.

This verb is new in Frontier 6.0.

Discuss