environment-variablesjavascriptuserappdatapath

how can I get the value of %APPDATA% using JScript?


how can I get the value (path) of %APPDATA% in Micorosoft JScript?


Solution

  • The WScript.Shell object provides the property Environment.

    see also: http://support.microsoft.com/kb/233513/en-us/