file-association

Perl Scripts on Windows 10 run from Explorer but not Command Prompt

旧时模样 提交于 2019-12-04 03:17:50
问题 I've installed ActiveState Perl on my new Windows 10 PC. I've installed the same exact version of Perl on several of my own PC's, and it's installed on 100's of other users' PC's in my company. Same exact install, created by me. This is the first time trying this on Windows 10. The basic actions of double-clicking a Perl script (*.pl) in Explorer cause a console window to open and Perl to run the script. Also, in Windows Command Prompt, I can type perl.exe script.pl , and the script runs fine

Can you dynamically assign CFBundleDocumentTypes to your Cocoa application?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:29:45
问题 Can you dynamically assign CFBundleDocumentTypes to your Cocoa application? Meaning during run time can I assign more extensions for my app to handle. Currently I set some extensions for my app to handle using CFBundleDocumentTypes in the Info.plist, but I would like to do this through code while the application is executing (during run time). Basically can I make Launch Services aware of new extensions without modifying the Info.plist file. Thanks. 回答1: At the moment, there’s no public API 1

listen for “open file with my java application” event on windows

痴心易碎 提交于 2019-12-03 15:25:36
Title is confusing, but don't know how to explain this in a few words: I have a java application that reads *.example files. I've also added a file association thanks to install4j so my application is launched when the user double clicks any file with extension *.example It seems that install4j sends the file path in the args[] so it should be easy to open that file and show it in my app. BUT what happens if the app is already running? I can only allow one instance of the application so, how can I know that the user is opening a file? I've found this: http://resources.ej-technologies.com

Windows: Changing the name/icon of an application associated with a file type

空扰寡人 提交于 2019-12-03 08:04:32
I would like to associate a file type in Windows with a particular application, but I need to make it so when the user opens the "Open With" menu, the name and icon of the application in the list is customized for that file type (i.e., not simply the name and icon of the executable). This is because the binary is a general binary that runs many different apps, depending on its command-line arguments (similar to python.exe or javaws.exe ). I don't want the "Open With" menu to show "Python" or "Java", I want it to show the name and icon for the application that is being passed on the command

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

只谈情不闲聊 提交于 2019-12-03 06:39:55
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 the user has as their default program to open .xls files. I have determined it's not as easy as just going into HKEY_CLASSES_ROOT and picking it out, since it may also be specified in HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER or HKEY_USERS. Maybe all I need to

Can you dynamically assign CFBundleDocumentTypes to your Cocoa application?

久未见 提交于 2019-12-03 05:34:48
Can you dynamically assign CFBundleDocumentTypes to your Cocoa application? Meaning during run time can I assign more extensions for my app to handle. Currently I set some extensions for my app to handle using CFBundleDocumentTypes in the Info.plist, but I would like to do this through code while the application is executing (during run time). Basically can I make Launch Services aware of new extensions without modifying the Info.plist file. Thanks. At the moment, there’s no public API 1 for an application to dynamically (un)register document types with Launch Services during runtime. Open Emu

How to associate a Windows application with a particular file type but share that association with other applications?

拟墨画扇 提交于 2019-12-03 04:52:48
If I create a new app, and associate with, say, the .xml file extension on a particular computer, when someone double clicks the .xml file, it will launch my app and pass the file as parameter. But Windows seems to know what other files have the ability to work with that file type. How is that set up? Also, when I save a Microsoft Word file as an .xml file, then later double-click on the file, it will launch Microsoft Word, even though the .xml file type is associated with something else, such as Internet Explorer. Seems like there may be a stub associated with .xml file type which when

Sublime as default editor

六眼飞鱼酱① 提交于 2019-12-03 01:32:49
问题 Is there a way to set Sublime Text as the default text editor for file formats on Windows 7? Also, if anyone knew a Sublime Text Tutorial or Wiki that would be really helpful. 回答1: Actually it is not my answer, I have just googled it: Open regedit ( Win + R , type "regedit", select OK). Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command Verify that the path is accurate, correct it if it is not. Exit regedit. Open task manager via Ctrl + Alt + Del (or Ctrl + Shift +

How do you set up a file association with a click-once application?

流过昼夜 提交于 2019-12-02 23:48:14
I have a click-once application. I have an associated file that I store the application's data in. When a user clicks on one of these files I want it to open the click-once app and load the file. I can set up the file association in the publish, the icon and name is correctly set. Clicking on the file opens the application, but the application doesn't seem to be passed the path to the file - the command arguments are empty. How do I get it so that the path to the file is passed to the application? When using Click Once, arguments are not passed in on the command line, they are passed in

Windows file associations done properly?

六眼飞鱼酱① 提交于 2019-12-02 18:06:32
问题 I want to set up my application to have a file association in Windows (additional complication: the file extension could conflict with some other unrelated application). What is the best way to handle a situation like that? Most likely, a user wouldn't have both, but in the event that they do, what is the best way to proceed? I've been searching stackoverflow and various other sites online, and have a basic idea of how to do this (I've tried it, and it works), but can not find a definitive