DirWindows

Returns the name of the Windows or Windows System directory.

Syntax:

DirWindows (request#)

Parameters:

(i) request# see below.

Returns:

(s) directory name.

 

This function returns the name of either the Windows directory or the Windows System directory, depending on the request# specified.

Request

Value

0

Windows directory

1

Windows System directory

2

Shared Windows directory on a multi-user system (Windows 2000 and newer).On other versions of Windows, this will return the same value as request 0.

 

 

 

Example:


DirChange(DirWindows(0))
files=FileItemize("*.ini")
ini = AskItemlist("Select file", files, @TAB, @UNSORTED, @SINGLE, @FALSE)
Run("notepad.exe", ini)
See Also:

DirGet, DirHome