Loading file default program icons

i need to be able to specify a file extention, then get the operating systems default icon for any file with that extention.
how can i do that in air?
thanks
marcidus

accessing the OS icon database is a very important part of UI development with user guided file handling,  if anyone knows anything about  how it can be done, it would be most useful.  filezilla does it, it recognises extentions and relates them to the OSs default applications for those extentions.  how does it do it?

Similar Messages

  • Windows explorer is not displaying thumbnails ( as it was earlier) instead it is showing default program icon

    Hi have been reading the blog for two hours now and I am no closer to a "fix" for this for  our network users. All users on the SOE build now cannot view  or preview image files in windows explorer it is showing just the default icon for
    all images files in a folder in Windows Explorer. Is ther a permanent fix to this problem that we can add to out SOE build or to the a windows update that Mircosoft has released?

    Hi,
    Here're two settings we need to check:
    Control Panel\All Control Panel Items\Folder Options, under "View" tab, untick "Always show icons, never thumbnails "
    Control Panel\All Control Panel Items\System, in the left panel, click "Advanced System Settings", then under "Performance" tab, click "Settings", under "Visual Effects" tab\Custom, find "Show thumbnails instead of icons", tick it.
    Yolanda Zhu
    TechNet Community Support

  • I cant open files with cmd-O, only by dragging file onto program icon in Dock. How is that..?

    "Could not complete your request because of a program error occurred."
    The first file open fine through finder but not the second. 
    Newly installed OS X Yosemite 10.10 and Photoshop CC 2014.2.1
    Pls help me out!

    I have exactly the same problem. It's really annoying!

  • Run file in Windows in this file default program

    Hello
    I want run file in my Java program. In example I click in my Java program on the "Hello.doc" text and it must run Microsoft Word. I try use:
    try {
        Runtime.getRuntime().exec("start c:\\file\\Hello.doc");
    } catch (IOException ex) {
       System.out.println(ex);
    }And in my console I have throws:
    java.io.IOException: CreateProcess: start C:\file\Hello.doc error=2
    Wher is a bug?
    Thenks to help

    Try this:
    try {
        Runtime.getRuntime().exec("cmd /c start c:\\temp\\Test.doc");
    } catch (IOException ex) {
        System.out.println(ex);
    }       

  • Firefox icon changes to default Windows icon after a few days

    Downloaded Firefox browser on new HP Pavilion dv6. After a couple of days, Firefox icon changes to default Windows program icon. Uninstalled Firefox and re-installed. After a few days, the icon changed back to default Windows program icon. I cannot manually change icon back under Properties setting as default program icon is now associated with Firefox program. Laptop is 64-bit, and program is installed under Windows x86 folder.
    Is this a Microsoft setting issue? Or do I need a different download for 64-bit?

    You can change FN and CTRL key in the BIOS

  • Make lightroom default program for raw files

    I purchased Lightroom 5 after a trial version expired.  (I believe the version was 5.2, not sure.)  I got the actual DVD with the activation code on the box.
    Current OS is Windows 7.
    At first I ran the updates from the internet (had a bit of trouble with the DVD opening) and it loaded version 5.5, and I used the activation code.  Everything went well, but when I try to open a raw file (Sony/.arw extension), it doesn't give me the option to use Lightroom as the default program for this action.  It doesn't show the program at all, and when I go into browse and select it, it still won't come up.
    So, I uninstalled everything, rebooted etc, then loaded up the DVD and got the DVD to work this time.  Again, I think the version came up 5.2.  Went to assign .arw files to Lightroom, and - no problem whatsoever.  Lightroom showed up as a program, like it hadn't before.  I then ran the update again to 5.5, and I'm running into the exact same thing, where I can't set LR as the default program.  Possibly the registry is not right?  It's just no longer seeing Lightroom as a program in the "Open With" option (when I reinstalled, it wiped out the 'open with LR' I had attached to the files.)  I can open up Lightroom itself just fine, but I can't just click on a raw file and have it open.
    Any ideas on how to fix this, and why the earlier version was okay, but the update wiped out the 'open with' option?
    Thanks,
    Carmen

    It is common misconception that LR should open images.
    What happens is that LR opens LR catalogs, not images.  Images are imported after LR has started up.  You can double-click on a LR Catalog, an .lrcat, file, or you can drag-and-drop a LR catalog file onto the LR icon, and either will cause LR to open, but that is all.  If you ever opened an image with LR it would hang and be difficult to fix.
    I think maybe LR 1.x would automatically import images if you dragged them to it, but that was shut down several versions ago.
    LR can also be set to open when you insert a memory card, via a checkbox in preferences.
    You can also open LR via a shortcut, and then drag-and-drop a folder onto the main image area in Library mode and that'll initiate an import.  This is actually what I do for every import.

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Win 7 "Default Programs" does not include MS Office 2007 Programs, the missing Programs are missing ICONs as well

    I installed Windows 7 in an upgrade from Windows XP.  As part of the process MS gave me a URL to download a Office 2007 Pro I could activate with the license key I owned.  I got similar URLs for Visio Professional and Project Professional. 
    Downloaded, installed, activated, started the programs.
    From the beginning some of the icons were missing.  Like the icons for Word, Excel, Access, Outlook, Power Point, Publisher, Visio, and of course Project.  I tried most of the answers in this forum, that didn't sound like guesswork, and none of
    them solved either problem.  There must be at least 65 guesses to fix the icon problem, but none with the missing Default Programs problem.
    The programs related to the missing "Default Programs" still work, they startup when you select the related document.  If I check "Associate a File Type or Protocol with a Specific Program" the missing Office 2007 programs are listed
    there, associated with the designated programs, but are missing icons.
    I make it a habit not to pay a vendor for a product so that I can have the privilege of fixing the vendor's problems.   Google tells me these are well known problems.  The only thing missing is the answer.  I won't ever use MS chat or telephone,
    because all they do is tell me why they can't help and transfer me elsewhere.
    Does anyone have a REAL answer please?

    To restore office icons you could try this method
    http://transitionmarketing.wordpress.com/2013/01/16/restoring-microsoft-office-icons/
    I had the same problem with Office 2010 programs not showing in "Set Your Default Programs". No other "fixes" (including repair) worked. Found this thread:
    http://www.sevenforums.com/microsoft-office/222503-office-2010-not-listed-default-programs.html
    and used it as a guide. When you look at this key
    HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications
    you will see a list of software pointing to another HKEY_LOCAL_MACHINE registry key. For example, my Word program was showing up as "Word.Application.14" and pointing to Software\Clients\Word Processing\Microsoft Word\Capabilities
    (In contrast, PastorMike's fix in the link above advocates making a new entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0\Word\Capabilities. However, OneNote did appear in my "Set Your Default Programs" and it - and the other Office programs
    - were listed under ..\Software\Clients\... and not ...\Software\Microsoft\...)
    So at this point I went my own way (although maybe PastorMike's fix would also work).
    The difference between OneNote and the other programs was the existence of values for "ApplicationName"  and "ApplicationDescription" in HKEY_LOCAL_MACHINE\Software\Clients\Word Processing\Microsoft Word\Capabilities. Also, for OneNote
    there was a "FileAssociations" sub-key that was missing from the other programs.
    It is setting the values for ApplicationName and ApplicationDescription which cause the program to show up in the list in the left pane of "Set Your Default Programs". And it is the file associations in the FileAssociations key that allows resetting
    associations en masse when they are snaffled by another program.
    Below is the reg file I added for Word 2010. (i used similar for the other programs) After doing this, Word appeared after reopening "Set Default Programs" - no reboot required
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Word Processing\Microsoft Word\Capabilities]
    "ApplicationDescription"="Create and edit professional-looking documents such as letters, papers, reports, and booklets by using Microsoft Word."
    "ApplicationName"="Microsoft Word 2010"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Word Processing\Microsoft Word\Capabilities\FileAssociations]
    ".doc"="Word.Document.8"
    ".dochtml"="wordhtmlfile"
    ".docm"="Word.DocumentMacroEnabled.12"
    ".docmhtml"="wordmhtmlfile"
    ".docx"="Word.Document.12"
    ".docxml"="wordxmlfile"
    ".dot"="Word.Template.8"
    ".dothtml"="wordhtmltemplate"
    ".dotm"="Word.TemplateMacroEnabled.12"
    ".dotx"="Word.Template.12"
    ".htm"="wordhtmlfile"
    ".html"="wordhtmlfile"
    ".odt"="Word.OpenDocumentText.12"
    ".rtf"="Word.RTF.8"
    ".wbk"="Word.Backup.8"
    ".wiz"="Word.Wizard.8"
    ".wll"="Word.Addin.8"
    By using my ramblings and the link provided above you may be able fix the problem you are having with Office 2007. However, I am unsure of how to find the necessary file associations for Office 2007 except by trawling through your registry for the filetypes
    listed in the link above and the values for them in HKEY_CLASSES_ROOT.

  • .msg files open in new tab or window, not with the default program

    Hello,
    I am having an issue with .msg files not opening with the default program, Outlook. They are opening in a new tab and it is just a bunch of gibberish from the email header. Does anyone know how to force IE to open the .msg files in Outlook? They open fine
    in Chrome and Firefox.
    Thanks for your help!

    Hi,
    First I suggest we take a try in IE with no-addons.
    Follow the steps below:
    1. Click Start -> All Programs -> Accessories -> System Tools -> Internet Explorer (with no add-ons)
    2. Press Shift, then right click Internet Explorer icon on taskbar, select run as administrator;
    Please also take a verify that if the outlook is set to the default open program of .msg files:
    Control Panel\All Control Panel Items\Default Programs\Set Default Programs, find the .msg file and take a look.
    Then we may try to use process monitor to track the root cause of this issue:
    The download link here:
    Process monitor
    And here is
    a blog talking about how to use it:
    Process Monitor - Hands-On Labs and Examples
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Set pages to be default program for *.doc files

    Is it possible to set pages to be the default program which my computer will ALWAYS use to open a MS word document? In windows i could set default programs for specific file types, e.g. .jpg, .mpg, mp3. I did not have to assign a program to open the program every single time. As far as I can tell , I have had to request pages to open my word documents every time i open a word doc. for the first time. Although I can set pages to be the default program for that one file, i want it set to ALWAYS OPEN ALL WORD DOCS. , until further specified. Any suggestions?
    thx.

    Highlight a known Word document in the Finder, highlight it & choose Get Info from the File menu. In the Get Info box, click the triangle next to "Open With." Click on this drop-down menu & choose Pages. If Pages is not a choice, choose "Other" & navigate to the Pages application. Now click the "Change" button under the text that asks if you want to open all documents like this with Pages. You can then double-click the Word documents & they will open in Pages. Note that the icon for the Word files will have a plain, white icon.

  • In "Set your default programs" under Win7, file associations of Firefox are tampered!

    In "Set your default programs" under the Control Panel of Windows 7, Firefox does appears in the "Programs" list on the left. But, its icon is that of Windows Media Player.
    After I click on the program's name (Firefox) to display the details on the right, I notice the icon for Firefox becomes that of Windows Media Player, too. And, "Mozilla Corporation" becomes "Microsoft Corporation."
    If I click on "Set this program as default", files of these types are opened by Windows Media Player, not by Firefox:
    htm, html, shtml, xht, xhtml.
    So, I have to manually associate those file types with Firefox from "Associate a file type or protocol with a specific program."
    To solve this problem, what registry entries should I edit?

    I don't know if the extensions I use for version 19.2 suit the latest version. So, I just re-installed 19.2, and all is well now. Thank you very much for your help.
    After the re-installation, I noticed there is a string value '''Firefox''' under
    ''HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications''
    This registry key contains all the program names listed in '''Set your default programs'''. So, I guess that if the string '''Firefox''' points to Windows Media Player, I get the trouble.

  • I can't set the photoshop CS6 as a default program to open jpg file on my windows 7 64bit computer?

    I reintalled 3 times for CS6 but the default program associated with jpg file still is unknown application.
    I try to change the default program, I can see the photoshop cs6 icon at the Adobe program folder.
    But just can be selected.

    I would recommend contacting Adobe Tech Support for this as playing with registry is quite dangerous , your computer may crash.
    Still if you want to try , first create the System Restore point and Backup your Registry , just incase something goes wrong.
    In regedit: Navigate to Computer\HKEY_CLASSES_ROOT\Applications and find your .exe name.
    Navigate under its name to shell>open>command. In the Default change its location to the actual location of the executable, hit okay and then try and reassociate the file type as you normally would.

  • I am unable to have Elements 12 recognized by Windows 7 as the default program for the jpg famuily of files. What to do?

    Windows 7 does not recognize Elements 12 as a candidate default program for jpg files. Any suggestions?
    The Elements 12 is authorized and works properly but does not show up in the Control Panel Default programs. (it is listed as a loaded program elsewhere in the Control Panel.)
    I have tried Uninstalling it and re-installing it several times with no success. I have used nearly all previous versions of Elements with no problem.

    Hi Robbie,
    The editor program is NOT under the organizer path as you mentioned in your last message. The actual editor program is at the location I gave in message #1 i.e. as follows
    "C:\Program Files (x86)\Adobe\Photoshop Elements 12\PhotoshopElementsEditor.exe"
    The one under the organizer is actually the Welcome screen which you have probably set up to go directly to the editor.
    If you go to the Open With screen I showed in message #3 and browse to the actual editor as given above, it should show up in your list.
    If it doesn't, then Windows is playing up again - and we have to take extra steps.
    Brian

  • Firefox keeps loading multiple tabs of: Index of file:///c:program files/mozilla then eventually crashes

    Firefox keeps loading multiple tabs of: Index of file:///c:program files/mozilla
    Here are the details:
    I start Firefox (6.0.2.4262) (I'm running version 6 due to compatibility issues with my online college having problems uploading files with FF version 7 or 8)
    I enter a web address (i.e. www.yahoo.com) and as soon as the page begins to load I have multiple tabs and windows opening.
    When I attempt to close one of the windows it gives the warning I am try to close "22 tabs" - yep... 22 tabs.
    If I allow FF to keep loading all the tabs, etc., about a minute later it will crash. The submit a crash window appears.
    I have all extensions and add-ons disabled.
    I even uninstalled Java, Flash, and several other programs in hopes that the problem would stop.
    In addition, I ran a malwarebytes scan and an Avira virus scan which both came up clean. I also used CCleaner to wipe out history and clean the registry. I even made hidden files visible and deleted the Mozilla install folders under my user name.
    So, then in hopes of searching for some answers on the Mozilla forums I started up the horrible Internet Explorer and also get a million different pages loading of the preset homepage of "msn.com", which also crashes
    (I apologize for starting and using IE, but I was limited on resources to check the internet for info)
    If anyone can offer some assistance, or advice on this issue I would greatly appreciate it.
    I am also using:
    Windows 7 Ultimate
    SP1
    Thank you,
    Biff

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iT

    After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iTunes makes the problem recur. Any answers?

    First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
    File Association Fixes for Windows 7
    Does that get your icons back to normal?

Maybe you are looking for

  • How do I deal with the"new itunes library" fiasco

    how do I deal with the "new itunes library" fiasco...?

  • Nokia c7 pr 1.2 hard reset

    Greetings all. My C7 has been giving me alot of problems so I am planning on installing pr 1.2 via ovi suite and doing a hard reset. *#7370# hasn't worked so this is whats left. Does anyone know if this will delete Maps, Social and Store and the Qt s

  • The cost to add channel SNY?

    WHAT IS the cost to add channel SNY?

  • I had my hard drive replaced and since my Time Machine backups say failed

    I had my hard drive replace and since my Time Capsule backups are failing. The exact message is: The backup was not performed because an error occurred while copying files to the backup disk. The problem may be temporary. Try again later to back up.

  • NON Cursor Select

    Does anyone know how to prepare and execute a select statement w/out using a cursor. My query is only ever going to return one row and I do not want the overhead of a cursor. I tried a simple "SELECT * INTO :stRec WHERE key = :key1" but the execute d