views:

24

answers:

1

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

A: 

The WScript.Shell object provides the property Environment.

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

harper
Thanks Harper..The following piece of code worked for mevar WshShell = Sys.OleObject("WScript.Shell");var WshSysEnv = WshShell.ExpandEnvironmentStrings("%APPDATA%");
satya