Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: IE9: How to automatically OPEN/RUN downloaded file?

17 Apr 2014   #11
adrianw

win 7 64 bit
 
 

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 System SpecsSystem Spec
.
09 Sep 2014   #12
JohnLBevan

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
29 Mar 2015   #13
foomonger

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.

Reply

 IE9: How to automatically OPEN/RUN downloaded file?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
File Explorer Windows Automatically Open in New Window?
I am noticing that when I click to open a folder in the File Explorer, the folder automatically opens in a new window. Then if I click on another folder or file, that automatically opens in a new window as well and so on. It is annoying to have to keep closing windows. I cannot locate how...
Customization
Cant open downloaded file
Hi, Ive just installed Windows 7 Pro and im struggling to open a downloaded file. Ive downloaded MSE 64-Bit and it wont work together with Speccy. The file is there in downloads but nothing happens. The other issue is that in my browsers, Chrome and IE9 the pages seem like they have not...
General Discussion
My pc open file automatically, then automatically shut down
My pc open file automatically, then automatically shut down when I running my pc, it create pop up sound then open file automatically then pc get shut down. watching any video file, this create more problem. when i scan all of my hard drives but any virus or virus activity didnt appear....
General Discussion
where is the file that i just downloaded but decide not to open?
when i download a file, Windows ask me if i want to save or open, if i choose open then i don't have to specify a location. later, i would be asked again to confirm open the downloaded file. if the answer is no, that would be the end. but where is the file now? how to locate it to delete it?
Browsers & Mail
Security won't let me open downloaded exe files
HI there I have only had my laptop 6 months, and I recently got a nasty virus on it that shut everything down. I managed to salvage it and it now works OK, problem is that since the virus I cannot run downloaded exe files. A windows security box pops up and says 'These files can't be opened....
System Security
Open downloaded docs and pics on Win 7
I am trying to open documents that I receive from vendors that have photos and text on them. The system first brings up scanners and cameras page with nothing in it. The if I try to choose open with... I can not seem to find a program to open them. Do you have any ideas? Thanks Kris
General Discussion


Our Sites

Site Links

About Us

Find 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 13:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App