Syntax
var$=WinDir$()
Return Value
var$
, string containing the name of the directory where Windows is installed.
Examples
var$=WinDir$()
msgbox(var$) 'Returns C:\Windows if Windows system is installed on C:
a$=WinDir$()+"\system"
msgbox(a$) 'Returns C:\Windows\system if Windows system is installed on C: