quote:
Originally posted by Mattike
It's not recommend to use full paths since they can differ on other systems. However, this is how you should do it that way:
code:
var WSH = new ActiveXObject('WScript.Shell');
wmpAppName = WSH.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Keyboard\Native Media Players\WMP\AppName");
Each of the \ shuld be \\ in JScript when looking through folders. Also for something like this it is very difficult to make a variable path (see my post). Actually I don't think this registry path can be any different anyway or else you would run into troubles elsewhere (I could be horribly wrong though).