Externally opening a file with the program its associated with

Basically I'm looking to simulate what would happen if you double clicked on something in a windows explorer window. I want to have the operating system open a file with the application that as associated with it.
how do I do it?

Have you considered the portability issue?
Win - Associate by editable user preferences
Mac - Associate to creation program
Unix/Dos - Explicitly associate program at command
Rather than just using exec, you could look into something encapsulated to set which program to use so you could use on other system.

Similar Messages

  • After installing Adobe, I find I can't open pdf files and the program shuts down automatically.

    Older versions of Adobe did not give me this trouble.  What's wrong?

    What is your operating system?
    What is your Reader version?

  • I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    I have Elements 10 and every time I go to open a file in the editor it shows its thinking and then it just shuts down the entire program. I have a big wedding I am working on and lots of other sessions. Please PLEASE help!!!!

    And you are quite persistent, Menu Boy, in offering pernickety and pointless prattle, in response to a "support page" on iPad's buggy Pages App.
    Let's summarise, for those reviewing this threadless thread for app support..
    Mobile pages works reliably for simple docs, especially creating letters and Menus for Microsoft's Kindy canteen (even on special days with nice big pictures).
    When importing more complex docs and/or working with larger creations, it is prone to randomly corrupting files upon re-opening, along similar lines as Word (running on a PC).
    So, Menu Boy, do they let you sneak into classes every now and then? What is the secret to their training? "Say after me, if any I.T. product works just some of the time, that's a job well done, and if something randomly stops working, we call that the user's fault... And if they complain, we call them names."

  • I had backed up my iPhoto library from my old mac onto an external drive. When I got my mac book pro this year I could not open the files. The program recognises the folders and opens the rolls but the image is greyed out.

    My old power book used an older version of iphoto, when I bought my macbook pro recently I tried to upload, from an external drive, my backed up files. The program opens with all the relevant folders down the left side but none of the image files will open; the boxes that would contain them are there, but greyed out.

    I am now using iphoto '11 version 9.4.2, the original images that Im trying to recover from the ext HD are iphoto version 6. The EXT HD is formatted for mac and has been ok for all my other files that have been backed up.
    When I boot up iphoto version 11 it looks like it always does and will open my current library of images. If I try to get images from the ext hd in this program the folder info is ok (down the left side) but the image boxes are greyed out.

  • How to open a file with the assosiate program on suse????

    i came to know that we can open a file with assosiated program on windows using "cmd /c start filename".
    and i want the same functionality on suse linux.
    in forums i found that "kfm filename" will do fine on linux.
    i tried it on suse but no use at all.
    i would appretiate the quick response and i would be very thankful
    for the same.
    Thanks alot in advance.

    take a look at java.awt.Desktop in the JDK SE 6 http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html.
    See these two methods:
    - void edit(File file)
    - void open(File file)

  • Can't open a file with spaces on the filename.

    Lets say I have a file:
    /home/orv/Open - Me - Please.txt
    When I double click to open that file with any program, the result is something like this:
    "Unable to find /home/orv/Open%20-%20Me%20-%20Please.txt"
    I'm not sure what to call that process of converting the file name so I've been unable to google it up to find a fix or a way to change the behavior of the file manager.
    I've checked the settings in Nautilus and nothings there. Any clues? Thank you!
    Last edited by orv (2007-12-14 23:11:59)

    I tried removing everything in my home directory to erase all settings, still the same problem.
    I tried using a different file manager and still the same problem.
    Here's another example of my problem and its quirks:
    Lets say I have a file called:
    /home/orv/I am a Movie.avi
    In nautilus or thunar, double-clicking that file so I can play it with Mplayer will give an error:
    Failed to open file:///home/orv/I%20am%20a%20Movie.avi
    However, when I drag and drop using the file manager into Mplayer, it works.
    So my problem is this automatic conversion of whitespaces into the %20 which I don't know how to turn off.

  • Open a file with its defualt associated application

    is there any way to open any file with its defualt associated application from a java program ?
    Example:
    In Windows I have a file example.txt and, from a java program, I would like opening it by the defualt associated application Notepad.
    Thx

    Take a look at this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=161228

  • Opening .doc files with wrong program

    Hi *,
    first I've installed open office. A few month later I installed micorsoft office. After that I converted all office files. Everything was working fine. Now my mac forgot to open .doc files with ms word, he chooses oo word. I do'nt have these problems with .xls files.
    Where are the global settings that I can tell my mac to open .doc files with ms word (I will not use "open with" each time;-)
    Thanks in advance
    Michael
    Message was edited by: MichaelLudt

    Select the file. Do a "Get-Info" from the File menu. (command-I). In the drop down menu "open with" select the program and then confirm you want all files like these to open with that program.

  • Changing default program to open a file with Regedit

    Hi 
    Is there a way to change the default program to open a file with another program using a Rededit key. I would like to change the program to open a .g3pp file with vlc instead of media player cause it doesn't read it.
    Thanks

    Is there a way to change the default program to open a file with another program using a Rededit key. I would like to change the program to open a .g3pp file with vlc instead of media player cause it doesn't read
    it.
    Why make life hard for yourself? Just right-click any .g3pp-file, then left-click "Open with". That's all!

  • OS X doesn't remember the default app to open a file with [delete the thread]

    Alright, so I have installed ACDSee and I want this app to be a default app the image files should be opened with.
    However, OS X keeps reverting back to the system's "preview app".
    Yes, I obviously ticked the "always open with" box, but it won't remember it. And at preferences (security & privacy) I allowed any app from the internet.
    Is there a system file that I'd edit with a text editor and manually set up a default app for a certain file extension?
    nevermind, rebooted the OS, and now everything works fine.

    Is there a way to change the default program to open a file with another program using a Rededit key. I would like to change the program to open a .g3pp file with vlc instead of media player cause it doesn't read
    it.
    Why make life hard for yourself? Just right-click any .g3pp-file, then left-click "Open with". That's all!

  • I opened a file with angry birds and its now frozen what do i do

    i opened a file with angry birds on accident and now its frozen it wont respond what do i do

    Force Quit .
    Press command + option + esc keys together at the same time.
    Wait.
    When Force Quit window appears, select the application if not already.
    Press Force Quit button at the bottom of the window.
    Wait.
    Application will quit.
    If this does not help, press the power button for 7 or more seconds.
    Computer will shut down.
    Restart.

  • I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    # Question
    I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    You probably have not seen anyone reporting the exact same problem as you. All three crash reports have the same crash signature and as currently ranked 67 it is not the commonest of reasons for a crash.
    I hope you enter your email contact information when reporting crashes. I note you see this crash when using videos, others may possibly see this crash in other circumstances.
    You have already tried the obvious, attempts at a fix so it is now down to wait and see, maybe developers working on the bug will report something or fix it.
    Did you try my suggestion of installing portable ESR ?
    For forum cross referencing purposes
    * Crash Reports for Crash IDs <br />bp-71697f5d-41d4-48ae-9db9-3e6302130607<br /> bp-6e1347bc-153f-433a-9c35-a5f022130607<br /> bp-92a533a2-9e09-4c1e-8df7-deb4c2130607
    *(all three) Crash Signature: EnumSoftwareMFTs(_GUID const&, unsigned int, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, IMFActivate***, unsigned int*)
    * Related bug 858667 NEW crash in mozilla::wmf::MFTEnumEx @ EnumSoftwareMFTs
    *I note this was first seen in Fx21 and is 100% Windows 7
    <br />

  • When I try to open a file with adobe Bridge it will say that the parent application is not active, how can I fix this??

    When I try to open a file with Bridge the following message appears:
    I already re-installed PS CC and I can open the files trough Photoshop CC but not through bridge.Any advice please??

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I have downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the Sony a6000 camera.  However it is not opening the images in camera raw.  What can I do?

    I have downloaded Adobe camera raw 8.4 so that I can open raw files with pictures taken with the Sony a6000 camera.  However it is not opening the images in camera raw.  What can I do?

    Close and restart Photoshop if you have not already done so.
    In Photoshop, go to the Help - About Plug-in... menu then choose Camera Raw.  What version does it say there?
    -Noel

  • When I try to open a file with TextEdit, I get the spinning beachball and the file takes almost a minute to open.

    When I try to open a file with TextEdit, I get the spinning beachball and the file takes almost a minute to open. When I just start TextEdit everything is fine. Also when I log on with another account TextEdit works like a charm, even when opening an existing file.
    What I have done so far:
    checked permissions in Disk Utility
    validated all fonts
    deleted all canon printer drivers
    deleted all preferences
    Nothing has helped. Mail shows the same behavior as TextEdit. What else can I do? Any help would be greatly appreciated.

    drwx------  2 admin  staff  -     68 29 Jan 12:16 Library/Caches/com.apple.AddressBook
    drwxr-xr-x  3 admin  staff  -    102 30 Jan 21:36 Library/Caches/com.apple.AddressBookSourceSync
    drwxr-xr-x  4 admin  staff  -    136 29 Jan 11:09 Library/Caches/com.apple.DictionaryServices
    drwxr-xr-x  3 admin  staff  -    102 30 Jan 17:21 Library/Caches/com.apple.DiskUtility
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:19 Library/Caches/com.apple.FontBook
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:54 Library/Caches/com.apple.KeyboardSetupAssistant
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:41 Library/Caches/com.apple.PubSubAgent
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:56 Library/Caches/com.apple.QuickLookDaemon
    drwxr-xr-x  5 admin  staff  -    170  2 Feb 07:41 Library/Caches/com.apple.Safari
    drwxr-xr-x  3 admin  staff  -    102 31 Jan 14:45 Library/Caches/com.apple.ScreenSharing
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 03:40 Library/Caches/com.apple.SoftwareUpdate
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:34 Library/Caches/com.apple.Terminal
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 18:48 Library/Caches/com.apple.calculator
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:10 Library/Caches/com.apple.finder
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 23:41 Library/Caches/com.apple.helpd
    drwx------  3 admin  staff  -    102 29 Jan 11:27 Library/Caches/com.apple.iChat
    drwxr-xr-x  2 admin  staff  -     68 30 Jan 18:21 Library/Caches/com.apple.iLifeMediaBrowser
    drwxr-xr-x  4 admin  staff  -    136 30 Jan 18:21 Library/Caches/com.apple.iMovieApp
    drwxr-xr-x  6 admin  staff  -    204  1 Feb 23:19 Library/Caches/com.apple.iTunes
    drwxr-xr-x  7 admin  staff  -    238 30 Jan 18:22 Library/Caches/com.apple.idvd
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 23:36 Library/Caches/com.apple.imagent
    drwxr-xr-x  3 admin  staff  -    102  1 Feb 18:13 Library/Caches/com.apple.installer
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 14:36 Library/Caches/com.apple.loginwindow
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 23:38 Library/Caches/com.apple.mail
    -rw-r--r--  1 admin  staff  -  17096  1 Feb 23:29 Library/Caches/com.apple.nsservicescache.plist
    -rw-r--r--  1 admin  staff  - 170969  1 Feb 23:30 Library/Caches/com.apple.preferencepanes.cache
    -rw-r--r--  1 admin  staff  - 106496  1 Feb 23:30 Library/Caches/com.apple.preferencepanes.searchindexcache
    drwxr-xr-x  3 admin  staff  -    102 31 Jan 16:03 Library/Caches/com.apple.safaridavclient
    drwxr-xr-x  5 admin  staff  -    170  1 Feb 20:03 Library/Caches/com.apple.storeagent
    drwxr-xr-x  3 admin  staff  -    102  2 Feb 07:38 Library/Caches/com.apple.syncdefaultsd
    drwxr-xr-x  4 admin  staff  -    136 31 Jan 16:03 Library/Caches/com.apple.systempreferences
    drwxr-xr-x  3 admin  staff  -    102 29 Jan 11:15 Library/Caches/com.apple.systemuiserver

Maybe you are looking for

  • How to add class file to the project in netbean

    Hi, I am not sure if it is the right place to put the question. I just cannot find the way to add my existing java class file into the project in net bean. Anyone can help? Thanks a lot

  • Installing 2 hard drives Problems

    I have a k7n2 Delta ILSR and I just finished building it and setting up the bios and everything seems to be running pretty good.  Currently, I have one hard drive (seagate) installed and I want to install a second hard drive (western digital  caviar)

  • Purchase Orders Summary, Currency Rate Field

    Recently we applied Patch INV.RUP 14, after that users notice that Purchase Order summary screen => Purchase Order Headers Block => Rate field, it shows the Foreign Currency Rate, while it used to show Local Currency rate before applying the patch. D

  • Set 'Use Job server default' for Unmanaged disk destination

    Hi, I am using BO XI R2 SDK to schedule reports. I want to set all my reports destinations to Unmanaged disk to a particular folder. I have set these in reportjobserver's destination configuration too. Now i want create schedules through code for all

  • Can any one send functional specs

    hai every body, My name is ravi. can any one send functional specs.. and what is functional specs. how it is useful Awaiting for response. Thank u.