quote:
Originally posted by -dt-
quote:
Originally posted by Weyzza
I honestly didn't think about non-English program path before (Smilie)
you can use SHGetSpecialPath for that, you should never assume the path.
code:
var CSIDL_PROGRAM_FILES = 0x0026;
Debug.Trace("Program Files path: " + getSpecialFolder(CSIDL_PROGRAM_FILES))
function getSpecialFolder(CSIDL){
var szSendToPath = Interop.Allocate((255 *2) +2);
Interop.Call("Shell32", "SHGetSpecialFolderPathW", 0, szSendToPath, CSIDL, 0);
return szSendToPath.ReadString(0);
}
You shouldn't assume Messenger is installed in Program Files