0

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

satya
  • 2,537
  • 9
  • 33
  • 43

1 Answers1

0

The WScript.Shell object provides the property Environment.

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

harper
  • 13,345
  • 8
  • 56
  • 105
  • Thanks Harper.. The following piece of code worked for me var WshShell = Sys.OleObject("WScript.Shell"); var WshSysEnv = WshShell.ExpandEnvironmentStrings("%APPDATA%"); – satya Sep 02 '10 at 09:12