file-association

Associate a File To a Application

Hello, I'm building two programs, a text editor and a zipper, but in this two programs I want to associate a file type to they, but how can I do this? Thanks. ...

FileAssociationInfo And ProgramAssociationInfo

Hello, I'm developing a application for Windows Mobile using C#(.Net Compact Framework 3.5), but I need to associate my program with a file type. When I try to use FileAssociationInfo I'm getting this error: The type or namespace name 'FileAssociationInfo' could not be found (are you missing a using directive or an assembly reference?) ...

How can I change the default editor for OS X on install?

I'm setting up an app to install on OS X. Previous versions of this app have been installed, and have associated a file type to open with the app in the Info.plist file in the app bundle. I have the same associations in the Info.plist for the new version of the app. I'd like to change the default app on install to use the new version wit...

How to programmatically create a file association that works in XP, Vista and Windows 7

I want to be able to register my file-extension from my program. (Associate the filetype with my program) There are lots of articles about this, but the technique discussed (fiddling with the registry) is only appropriate for Windows XP as far as I see. What is the best way to associate a filetype with a program so that it works under ...

File Associations in C#

Is there an easy way to determine what a file is by its extension in C#? For example if I pass a file extension of ".txt" then it will return "Text Document" or if I pass it ".pdf" it will return "Adobe Acrobat Reader". I see this behavior built into Windows Explorer, under the "Type" column. Is there a way to mimic this in C#? ...

ClickOnce app does not start through Process.Start("x.abc") with *.abc associated to ClickOnce app

I have successfully developed and deployed a ClickOnce application which registers an associated file extension, for instance *.abc. When I click on a file named x.abc or if I type x.abc from the command prompt, the ClickOnce application starts and I can retrieve the file through the dedicated API. I can also launch the application progr...

Visual Studio opening .xml files in Notepad

So I'm happily working on a project making heavy use of custom .xml configuration files this morning. All of a sudden, whenever I double-click an .xml file in Solution Explorer, it opens in Notepad instead of within Visual Studio. Thinking that it was the Windows file associations, I right-clicked on a file in Explorer, selected Open W...

How do I register a file association in Ubuntu.

I'm in the process of creating a Ubuntu Installer and I need to register my own file extension I cant find any examples of how to do this. Could people provide me with some script snippets on how to do this? NB: Im using InstallJammer to help me create the installer, which allows me to call external scripts - so that is why a script ...

Utilising a file association in a Java application.

I am in the process of writing a cross platform Swing based application in which I want to utilize a file association which has been registered with the OS. So iv got to the point where I can click on a file and my app loads, but what I need to know is how I can get my application to know where the file is that launched it and then quer...

How do I get the path to the associated file used to launch a program?

I have a program with an associated file type. However, when I double-click a file to launch the program, I can't figure out where that path was passed to the program. Initially I thought the file path would be in Environment.CommandLine, but the command line only contained the program path. I specified the file association using the P...

Creating a file association icon in Ubuntu with xdgutils

I am using the xdg utility to attempt to associate a image with a file association. I have ran this command and the equivalent for 48,64 and 128 sizes, none of them seem to have an effect. xdg-icon-resource install --context mimetypes --size 256 image-256.png text-abc Any ideas? This is incredibly lame - but I have managed to get...

How can I get the Name of the Program associated with a file extension using Delphi?

I need to get the name of the program currently associated with a file extension for the current user. If you right-click on a file and select properties, then what I need is the program name that is to the right of the "Opens with" line. e.g. For ".xls", I want to be able to get the answer "Microsoft Office Excel", or whatever program...

Set registry to control working dir when associating file-type with application

I'm using Inno for an installer, and I want to associate a file type with my app: Root: HKCR; Subkey: ".rpl"; ValueType: string; ValueName: ""; ValueData: "MyReplay"; Flags: uninsdeletevalue; Root: HKCR; Subkey: "MyReplay"; ValueType: string; ValueName: ""; ValueData: "Replay File"; Flags: uninsdeletekey; Root: HKCR; Subkey: "MyReplay\D...

C++: How do I correctly register and unregister file type associations for our application (programatically)

Time was when you set file associations in: HEY_CLASSES_ROOT\<.ext> However, that seems to be possible, but an incomplete solution anymore. There are additional associations throughout the registry. For example: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap HKEY_LOCAL_MACHINE\Software\Microsoft\Window...

What should be done in place of ddeexec for MDI apps?

We have been using ddeexec registry entries to handle opening a design from Explorer. MSDN (about 2/3 way into article) indicates that ddeexec is deprecated, and applications should use IDropTarget instead. What is unclear to me is how that this actually is supposed to work.. e.g. If I have Foo.exe, which is intended to handle .foo fi...

How to associate a file extension to a program without making it the default program

I'm deploying a small conversion tool on some systems, and want the users to be able to run it from the right click Open with menu. But I don't want to change the default program users have associated to this file type. It is easy to associate a file extension/type to a program, but how to do it (programatically of course) without chang...

MacOSX - File extension associate with application - Programatically

I'm trying to get my program to automatically associate certain file extensions to be opened by it but I'm not sure how to do that in MacOSX. I'm not asking how to associate a program with a file extension in the GUI, I want to be able to program it into my program. ...

Associate specific file extensions with my delphi app - any library for this?

So far if I had to associate the file extension with my application I used to simply modify the registry. However I haven't been doing it for years, and I'm afraid the things might have changed a bit. I have no idea how to prevent registry access restrictions in Windows 7 / Vista (if there are any for HKEY_CLASSES_ROOT). Thus I'm looking...

How can I simply "run" lisp files

Python When I learned Python I installed it on windows with a nice gui installer and all .py files would automatically run in python, from the command line or explorer. I found this very intuitive and easy, because I could instantly make plain text files and run them. Lisp I'm starting to learn lisp and have decided (from reviews) th...

How to properly add file associations to the Windows Registry?

What data and where, should I add to the Windows registry to properly create a file association? I ask this question primarily because of some old applications that I wrote years ago, which used Visual Studio .NET's Windows Installer packager to create the file associations. The extensions I installed were .whr and .encxml. Now, on the...