Get_Windows_Directory

Purpose

Returns the path of the folder in which Windows is installed.

Syntax

Get_Windows_Directory to {variable}

where:

What It Does

Get_Windows_Directory returns the entire path (starting with the logical drive identifier) to where Windows is installed. This is useful for finding Dynamic Link Libraries, initialization files, bitmaps, and other files, which are typically installed in or below the Windows folder.

Example

String sFolder

 

// Retrieve the folder where Windows is installed.

Get_Windows_Directory to sFolder

Send Info_Box sFolder "Windows Folder"