IE9: How to automatically OPEN/RUN downloaded file?

Page 2 of 2 FirstFirst 12

  1. Posts : 1
    win 7 64 bit
       #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
      My Computer


  2. Posts : 1
    Windows 7 Ultimate x64
       #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) }
      My Computer


  3. Posts : 6
    Windows 7 Ultimate x64
       #13

    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...

    Code:
    HKEY_CLASSES_ROOT\.pls
    My "Default" entry is "Winamp.PlayList". And that's what you use, e.g...

    Code:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}]
    "Winamp.PlayList"=dword:00000000
    Simple.

    -fm
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:40.
Find Us