New
#11
Other values:
For MSOffice 2003
Excel.Sheet.8
PowerPoint.Show.8
Word.Document.8
For MSOffice 2007
Excel.Sheet.12
PowerPoint.Show.12
Word.Document.12
Other values:
For MSOffice 2003
Excel.Sheet.8
PowerPoint.Show.8
Word.Document.8
For MSOffice 2007
Excel.Sheet.12
PowerPoint.Show.12
Word.Document.12
The below powershell script should help you to find the class guid & program id for a given exe filename:
Code:$exeFilename = '.*\\iexplore\.exe.*' #$exeFilename = '"%ProgramFiles%\Internet Explorer\iexplore.exe"' #this is the actual value in the registry; however using the above regex is more flexible New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null $results = Get-Item 'HKCR:\CLSID\*\LocalServer32\' ` | where-object { (get-itemproperty -Path $_.PSPath -Name '(default)' -ErrorAction SilentlyContinue) -imatch $exeFilename} ` | %{ @{ Program_ID = [string]((get-itemproperty -Path ("{0}\ProgID" -f $_.PSParentPath) -Name '(default)' -ErrorAction SilentlyContinue).'(default)'); ExePath = [string]((get-itemproperty -Path $_.PSPath -Name '(default)' -ErrorAction SilentlyContinue).'(default)'); App_GUID = [string]((get-item -Path ("{0}" -f $_.PSParentPath)).PSChildName); } } $results | %{ write-output("{0} :: {1} :: {2}" -f $_.app_guid, $_.program_id, $_.exePath) }
The "ID" is simply the default CLASS name, e.g. if you want IE (or the Winamp embedded browser) to automatically play .pls file, look up the key in the registry...
My "Default" entry is "Winamp.PlayList". And that's what you use, e.g...Code:HKEY_CLASSES_ROOT\.pls
Simple.Code:[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}] "Winamp.PlayList"=dword:00000000
-fm