Where does Windows store its “Open With” settings?

Take a look in: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ and the sub-key of that is the extension you reassigned. Under that there will be the UserChoice and OpenWithList sub-keys which will contain your redefinition. You may also want to read http://support.microsoft.com/kb/950505 which talks about your issue. Update As of Windows 8, life has gotten far more complicated. To create …

Read more

Which MIME type is correct for the .exe file?

application/vnd.microsoft.portable-executable is a registered MIME type and its description matches what you want to use it for. The x- prefix in application/x-msdownload indicates that it is experimental so it should generally be avoided: Especially if something standard is available as it in in this case. application/octet-stream is for arbitrary collection of bytes. It does match …

Read more

How to get the file extension in Android?

lots of ways . here are 2 sample- String someFilepath = “image.fromyesterday.test.jpg”; String extension = someFilepath.substring(someFilepath.lastIndexOf(“.”)); So in you case, it should be something like that String extension = ff.getAbsolutePath().substring(ff.getAbsolutePath().lastIndexOf(“.”)); In case if you don’t want to do it yourself- use FilenameUtils.getExtension from Apache Commons IO– String extension = FilenameUtils.getExtension(“/path/to/file/mytext.txt”); or in your case – …

Read more