file-association

How can I prevent IntelliJ IDEA from reassigning file type associations at startup?

帅比萌擦擦* 提交于 2019-12-12 11:22:28
问题 I'm using IntelliJ IDEA Ultimate 18.1 and Jenkinsfile support is awful. Thankfully, treating the file as Groovy is a workaround I can live with. This involves Removing the Jenkinsfile association Adding Jenkinsfile under the Groovy group The problem is every time IDEA starts up fresh, it will remove Jenkinsfile association and, since (1) the original association has been removed, treat these files as plain text. File type recognized: File extension Jenkinsfile was reassigned to Jenkins file

Associate a File To a Application

你说的曾经没有我的故事 提交于 2019-12-12 05:39:03
问题 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. 回答1: You need to edit the registry: http://support.microsoft.com/kb/257592 You'll probably want to use regedit to see previous file associations, to make sure you don't mess up. c# registry basics 回答2: I know this is an old thread, but I don't think you should be messing around with the registry like that. Especially not since ClickOnce and

How to make Windows autoview a file with my program, and how to make the program read it?

两盒软妹~` 提交于 2019-12-11 23:45:36
问题 I want it like when we do "open with" and then choose Notepad. So that when I "open with" a file there will be my program in the list. How to associate a file type with my program? How to make the program handle the file? 回答1: Deploy the app. using Java Web Start. Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java

Set file association from batch file

我们两清 提交于 2019-12-11 15:35:06
问题 I want to set file association from a batch file. I want to associate .pdf files with foxitreader. The thing is I have the foxitreader portable edition so it doesn not have any registry key. I have searched but there is no clean explanation of how to do and what syntaxes to use. 回答1: Using batch, use the following commands: ftype Foxit.Document=<replace with foxit full path name> assoc .pdf=Foxit.Document But it could be more convenient to use "Open with", "Select program" and "Always use

Creating a file association with vb.net

走远了吗. 提交于 2019-12-11 09:29:47
问题 I am creating an installation at vb.net, and I want to set my application to the default application for extension - for example, txt. How can I do it? 回答1: This sort of thing is usually handler by a dedicated installer program but you can do it using .net code although you program will need admin rights when running... Have a look at this full example in VB.NET: http://www.devx.com/vb2themax/Tip/19554?type=kbArticle&trk=MSCP Credit to Marco Bellinaso for the code. Here is the verbatim code

VB.Net What Event is Triggered When Double-Clicking to Open Custom File?

我的未来我决定 提交于 2019-12-11 03:27:22
问题 I have created a custom file type that is recognized by my application, and I would like to know what event is triggered when I open my application by double-clicking a file of this type. I have placed breakpoints at the beginning of handlers for Form.Shown and Form.Load, as well as at the beginning of the form's constructor, but the application never hits the breakpoints. 回答1: If you're opening the application by double-clicking on the file in your computer's filesystem the debugger built in

C# proper way for file associations

假如想象 提交于 2019-12-11 03:05:20
问题 I've been looking for a proper way to get file associations working on WinXP and above. The association should be replaced if it already exists. The application I've developed always run in admin mode, so rights shouldn't be a problem.' I've come across some old posts that had some sample code, but some of them didn't work well enough and some not at all. I'm using this post to make a final desicion on the method I will attempt to use and am looking for as much feedback as possible. 回答1: I

Programmatically add file association without admin rights in C#

送分小仙女□ 提交于 2019-12-10 18:52:25
问题 Other people have asked similar questions but I want to clarify. I want to build my application without the need for administrative permissions when installing. For the file association I understand that I need to write in the registry but so far I have found two different locations in stackoverflow articles: HKEY_CURRENT_USER\Software\Classes and another under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts So which is one the right one? 回答1: You should use the

How to set an application as the default program of opening a certain type of file programmatically?

ぃ、小莉子 提交于 2019-12-10 15:25:28
问题 There's an executable file generated from my program in MFC and I want to use it as the default program to open the .jpg files. That is to say, each time I double click a .jpg file, my program will run. I tried to add some registry entries linking .jpg files with my program, such as HKEY_CLASSES_ROOT\.jpg\shell\open\command (set its value to "myProgram.exe" "%1" ), and HKEY_CLASSES_ROOT\myProgram . The method works just fine except when some other applications register themselves to open the

How to properly add file associations to the Windows Registry?

你说的曾经没有我的故事 提交于 2019-12-10 15:17:06
问题 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 computer on which these applications are installed, a strange problem occurs sometimes - when a file is downloaded in either Google Chrome or Internet