WinDir Function

Purpose

Returns the Windows directory.

Syntax

$ = WinDir[$]

Description

Returns the Windows directory without an ending backslash.

Example

Message WinDir

Remarks

The system directories have different names on different machines and OSs. For often used directories GFA-BASIC 32 provides WinDir, SysDir, and TempDir to return the specific directories. Other Shell related directories can be obtained using the App object properties like scPrograms and scSpecialDir.

See Also

SysDir, TempDir, scSpecialDir

{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}