Open With my program doesn't work

I have Java program which runs on PCs and saves files with a special extension. When I double click on a saved file, I would like it to open with my program. This worked before when my program was stored on the C drive. But now I store it more appropriately in the Program Files folder, and it does not work anymore.
If I try to say Open With and browse to my program, it does not show up in the list, so I cannot choose it. Or if I go to Default Programs in the Start menu, click on Associate a file type or protocol with a specific program, select my extension, click on Change program, and browse to my program, again it does not show up in the list, so I still cannot choose it.
I am using Windows Vista, and I am able to make associations with other programs, but not with my program.
How can I make it work? Thanks for your time!

Sorry to bother you with this. Yes, this was a Windows problem, not a Java problem.
The solution was to use the Registry Editor. Just for the record, let me post my solution:
For being able to open files with my extension, I had to create a registry in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts,
including the subkey of the program name in the subfolder OpenWithList
and the subkey of the program id in the subfolder OpenWithProgIds.
And for the program id I had to create another registry entry in HKEY_CLASSES_ROOT,
including the subfolders Shell, Open, and Command, where I placed the
subkey of the directory of my program.
I did all this with my installation program Inno Setup (www.jrsoftware.org). Here is
the code I created with Inno Setup for recognizing my ".ac" extension:
[Registry]
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithList"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithList"; ValueType: string; ValueName: "a"; ValueData: "Ananya.exe"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithProgIds"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithProgIds"; ValueType: binary; ValueName: "AnanyaCurves"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves"; ValueType: string; ValueData: "AnanyaCurves"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell"; ValueType: string; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell\Open"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell\Open"; ValueType: string; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell\Open\Command"; Flags: uninsdeletekey
Root: HKCR; Subkey: "AnanyaCurves\Shell\Open\Command"; ValueType: string; ValueData: """C:\Program Files\AnanyaCurves\Ananya.exe""""%1"""; Flags: uninsdeletekey
Now my program even shows up in the Recommended Programs!
And, by the way, this only worked if I put my extension key in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.
It did not work if I tried to put my extension key in HKEY_CLASSES_ROOT.

Similar Messages

  • Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    More information please.
    Version of Reader? OS?  Can you open reader by double-clicking on its icon? Can you open reader by double-clicking on a pdf file? What programs are trying to open reader? Some programs might be restricting your ability to view pdf files using the Reader plug-in due to security concerns. If this is the case you need to find out how to enable the plug-in in the case of each application.

  • Open With Change All doesn't work

    Change All... under Open with: in the Get Info dialog doesn't always work. If I select a .pl file and then use this method to ask OS X Mountain Lion to open all .pl files with (the default) TextEdit.app, then in the future only that same file is opened with TextEdit. Other .pl files, even if in the same directory, are opened with whatever other application they were previously set to be opened with. This contradicts the claim that "This change will apply to all documents with extension “.pl”."
    Is this just a bug, or might I be doing something wrong?

    This free program will solve your problem, it's a System Preference Pane actually.
    Wonderful program for fixing all file association issues in one location.
    http://www.rubicode.com/Software/RCDefaultApp/

  • "Always open with" (this application) doesn't work

    I'm fighting to set Photoshop as the default application to open TIFF files. The present persistent default is Preview. In theory, I should right-click on a TIFF file, choose Open with > Other..., then select Photoshop and check "Always open with" checkbox.
    It doesn't work. The file is opened in Photoshop, but after I close the file and double-click THE SAME FILE in Finder, my Mac happily launches Preview again.

    Hi,
    Try the other way,
    1. Right click on the tiff file, choose 'Get Info'.
    2. In the get info window choose 'Photoshop' for 'Open with'.
    3. Click the 'Change All...' button.
    This might work.

  • Always open with Pages '09 doesn't work? (Pages 3.0)

    i have a copy of Pages '09 and a copy of Pages 3.0 on my MBP. unfortunately my Mac Pro only goes up to Lion so i cannot use 3.0 and this machine cannot /read/ 3.0 pages document.
    consequently, i would like to almost always open Pages documents with the 09 version or i would like to temporarily unload 3.0 so that i don't end up with a mess of files that only open on my laptop.
    unfortunately when i right click on a PAGES document and go to PAGES 09 and check "Always Open With" - this single document opens with pages 09 but other pages documents seem to open with pages 3.0.
    am i missing something here or is this the intended implementation? i mean, can i set pages documents on this computer ot always open with 09 unless i manually tell it to open with 3.0 or am i somehow supposed to tell every pages file on my HD to open with 09 (which is obviously not workable).
    any ideas on what i am missing or if my system is acting buggy.
    thanks

    hi T.
    thanks a bunch.
    somehow i forgot this fact.
    does seem like for new users they could put a prompt in Open With Other to direct people to Get Info and in Get Info they could put a prompt to direct people to Open With Other in the event one has one workflow need as opposed to the other. this is a pretty basic user need, there is nothing obvious in the prompts that tells you what in fact you are doing, and even after having been back on the mac for a number of years now it is not one i remember even when working in the UI.
    again many thanks.

  • LAN with TCP/IP doesn't work

    Hello,
      I have a problem with my laptop IdeaPad S10e 4187-5PG: LAN with TCP/IP doesn't work, after I have updated all the drivers to the latest ones form the Lenovo site (except BIOS update). I tried to check if LAN worksby sending a ping to the IP address and that is OK, but when Isend a ping to the default gateway it failes. A ping to the DNS server also fails.Could you please help me because I tried everythinh and I can't getthe LAN to work.
    Thank you very much

    Perhaps you could describe you network in a little more detail.
    Is this a Workgroup home network or are you connected to a Domain server?
    If this is a workgroup are you connecting to the internet via a cable or DSL router?
    Do other computers on your network connect OK?
    Has your S10e ever worked properly on the network?
    Are you connecting via a wireless access point or LAN cable? 
    What do you Ping on and from where?
    Can you Ping OK on another networked computer?
    Open up a DOS Prompt (aka command prompt, DOS Box). and type IPCONFIG  /ALL <enter>. Do you get a compatible IP address and subnet mask? You should also get the gateway IP address.

  • In day 4, video # Creating "pages" with Flex states doesn't work

    i can't open video training http://www.adobe.com/devnet/flex/videotraining in day 4. it's name( Creating "pages" with Flex states ) doesn't work, it report error. supporter can look it and solve problem

    Hi,
         I'm also pacing the same issue. if click on the video in the Day 4 exercises. i don't know, what is the issue with that particular videos. and also pacing one more issue that design mode is not showing in my flash builder 4. if u have any ans plz help me out. PFA

  • SAPGUI login scripting program doesn't work.

    I used a program which is called for sap login through local SAPGUI.
    I call this program, then sapgui is called and then ID and PW is filled with existing value.
    It worked well. however, we upgrade SAP frrom R/3 4.7 to ECC 6.0 and SAPGUI version is also changed.
    after uprading, my program doesn't work.
    although sapgui version is changed, my program can login R/3 4.7 server. but my program can't login ECC 6.0 server.
    In case of ECC 6.0 server, my program can call SAPGUI. however, it can't fill the ID and PW. so it cant login.
    I can't get the source of my program because I received only execution file.
    Can you suggest any solution? such as, change the dll file.
    Plz give me the solution!!!.

    Dear J-Philippe,
    I'm just getting started with SAP GUI Scripting through the COM interface and I seem to be running into the same issue.
    You seem to be referring to a work-around mentioned in the README (#4). I don't know where the README is located, could you (or somebody else) please post the work-around or the README or location thereof?
    By the way, here's the code I'm running (it's Python):
    import win32com.client
    wrapper = win32com.client.Dispatch("SapROTWr.SapROTWrapper")
    sap_gui = wrapper.GetROTEntry("SAPGUI")
    application = sap_gui.GetScriptingEngine
    connection = application.FindById("con[0]") # returns /app/con[0]
    session = connection.FindById("ses[0]") # throws exception
    The last statement fails with an exception "The control could not be found by id".
    When I use connection.Children(0) instead I get the exception "The enumerator of the collection cannot find an element with the specified index"
    Same results when using SapGui.ScriptingCtrl.1.
    Thanks!
    Edited by: brucevdk on Jan 31, 2011 7:51 PM
    I found the mentioned SAP note 1526624 somewhere (I don't yet have access to the official resource) and it made me think that perhaps I'm not dealing with the same issue. I'm also not sure what CreateObject is and if it's similar to the Dispatch functionality above (I'm just getting started with COM Programming). I'll play around with the recorder at work tomorrow to see if scripting works at all.

  • Why tethering with USB cable doesn't work after IOS6.0 update?

    why tethering with USB cable doesn't work after IOS 6.0 update?

    Try updating the carrier settings, if that doesn't do it try following along with this Apple doc -> iOS: Troubleshooting Personal Hotspot

  • ITunes 10.4 full screen with Win7-64bit doesn't work correctly.

    iTunes 10.4 full screen with Win7-64 doesn't work correctly. I have the Windows taskbar on the left side of my screen. Maximized iTunes is panned to the left.

    Same issue here. When the Windows taskbar is position on the top of the screen and then the iTunes windows is maximised, it's position is as if the Windows taskbar is at the bottom of the screen so the top of the iTunes window sits under the taskbar.
    For those wanting a workaround, hold shift and right click the iTunes icon in the taskbar/quick launch bar and click restore, at least then you can adjust it to be full screen manually.
    System:
    Windows 7 Ultimate x64
    iTunes 10.4
    ATI 5750 video card

  • TS3212 when i download it saves as a file? itunes-setup? and ask me to open with a program. what am i missing

    when i download i tunes im asked to open save cancel. wherever i save it saves as a file itunes-setup. when i try to open this file it asks me to open with a program. just want to download i tunes, i had it before, thanks

    Have a look here  >  http://www.apple.com/support/itunes/install/

  • Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Hello lila54,
    It sounds like your Wi-Fi network is working if your desktop works with it, we just need to get the Wi-Fi on your iPhone and iPad connected to it.  I found a couple of resources to help with not being able to connect to Wi-Fi on an iOS device.
    I recommend following the steps in this tutorial first (the steps should work on the iPhone and iPad):
    Join a network
    http://www.apple.com/support/iphone/assistant/wifi/
    If you are still having trouble connecting to Wi-Fi, follow the steps in this article (you can skip any steps you have already taken):
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • Windows "Open with..." not working for Photoshop/CS5.5

    I use the "Open with..." command in the Windows right-click context menu all the time to open .jpg and other image files in Photoshop. I don't want to directly associate .jpgs, etc, to Photoshop because most of the time I just want to view them quickly in Windows Photo Viewer. But every once in a while, I need to open one in PS, so I had been using the "Open with..." menu command. This worked fine in every version of CS that I've ever used.
    Until, all of a sudden, when I installed CS5.5, "Open with..." no longer works. Right-clicking on a .jpg, for instance, doesn't even show Photoshop as a valid option for an application in which to open the file (not in the "Recommended Programs" list or even the "Other Programs" list). So I have to go and browse for an "Additional Program". I'm using Windows 7 64-bit, but whether I choose the photoshop.exe in Program Files or Program Files (x86), the jpg still just opens in the default application (Windows Photo Viewer).
    Same for PDFs (opening in either Photoshop or Illustrator).
    PSDs open fine, directly, when I double-click the file.
    This really seems like a CS issue, since "Open with" still works fine for other non-Adobe applications.
    How can I get my "Open with" menu to "see" Photoshop again as a valid option and pass the filename correctly so that it actually opens the file?
    Anybody have any ideas?
    Thanks much!

    Nope. I'd done that many many times, and it never "stuck". No matter how many times I browsed for the exe, whether I checked "Always use the selected program..." or not, the jpg still opened in Photo Viewer.
    Turns out, this thread showed up on the "More like this" widget in the righthand of these forums when I had submitted my post, and that answered my question. Why the thread never showed up when I was actually searching for an answer, I'll never know.
    As per that thread, you have to go in and manually set/update the registry key
    HKEY_CLASSES_ROOT\Applications\Photoshop.exe\shell\open\command
    to point to the path of the most recent Photoshop (in my case, C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Photoshop.exe). I guess this is something that the CS5.5 installer fails to do under certain circumstances. It was still pointing to the path of my CS5, which was no longer valid.

  • Microsoft online help files open with wrong program

    When ever I go to windows help and select an online article it tries to open with one of my paint programs.  I can view any help files that are "on my computer" but if it's elsewhere, I can not open it. Can anyone tell me where I can change
    the default help files.
     

    Hi,
    Please try suggests here to restore the default file association:
    Restore Default Windows 7 File Extension Type Associations
    http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html
    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    If it doesn't work, check this hotfix:
    Error opening Help in Windows-based programs: "Feature not included" or "Help not supported"
    http://support.microsoft.com/kb/917607
    Kate Li
    TechNet Community Support

  • Problem with various programs freezing/not working

    I'm not sure if it's a problem with the computer itself or with the software, but perhaps someone on here can help me.
    For about a week now I've been having problems with various programs on my iMac. These programs include iTunes, Force Quit, Shut Down, Safari, Finder, and certain functions on the keyboard.
    The problems I've been having revolve around the programs freezing up when you either first try to operate them or after opening the programs and trying to click on things within the program itself.
    A good example: I haven't been able to use iTunes past the point of opening it up. Once I try to play a song, it freezes up and the rainbow wheel comes up and just keeps on spinning for eternity, or until I manually reboot the computer via the power button.
    The volume controls on the keyboard don't work at all. When I first boot up the computer, I can press a volume button and the symbol will appear on the screen, but the level won't move up or down and if you press it again after that disappears then it doesn't reappear.
    Force Quit and other applications tend to stay on the screen after you click the quit button or other end/cancel button and won't go away until iMac is rebooted manually by button on back.
    Safari gets stuck on occasion depending on which site I go to. It happened once when I went to MySpace.com, but only cos of one of the flash sites they were advertising. I went to the same site an hour later and it was fine since it was advertising something else. I have a job site I can't access because when I click on the 'jobs' link to look for a job, it gets 3/4 of the way through the upload and freezes.
    And right now I can't tell you which model I have since I can't access the 'About This Mac' info, other than to tell you it's the 20" with 320 GB with Leopard software, Mac OS X v10.5. It gets regular updates.
    So... if there's anyone who could help me, I would greatly appreciate it.
    Please note, I don't have Apple Care since I can't afford it yet, and I just bought my computer in October 2007. Thanks!

    Start with http://www.thexlab.com/faqs/multipleappsquit.html

Maybe you are looking for