Forum Discussion
AlexanderM
Staff
16 years agoHi Siva,
Also, you can try using the following script that does not require .NET installed:
Also, you can try using the following script that does not require .NET installed:
function Test()
{
// Define a variable to be passed as the Shell.NameSpace method's parameter.
// For additional information, see the "ShellSpecialFolderConstants Enumeration" MSDN article.
var ssfLOCALAPPDATA = 0x1c;
var oShell = new ActiveXObject("Shell.Application");
var OutputDirectory = oShell.NameSpace(ssfLOCALAPPDATA).Self.Path;
Log.Message(OutputDirectory);
}