Openeing external files with defualt open settings

hi can NE one tell me hwo to open an external file with it's defualt viewer
e.g. open a .mdb file in access or a .txt file in notepad
thnx
help would be much apreciated

hi,
this is what i use on a win2000 platform:
try {
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("cmd /c start yourFile.ext");
} catch(Exception e) {
System.out.println(e);
it is possible that a full path of the file is required.
good luck

Similar Messages

  • Opening External File with bookmarks

    Thank you for any help given.
    I have set-up 1 dropdown to filter info in to a second dropdown that when i select that item, it opens a new file over the top of the page. Great.
    The file that is being opened has been set to No Bookmarks "Page Only" & view at 65% in Document Properties, However when it is opened the file opens with Bookmark tab open showing "Local Disk" & "file:///C|/Documents%20and%20Settings/Craig%20Ryan/Desktop/FILE%20SYSTEM/CPG%20Paperwork /Handouts/Inclusions Elegance.pdf" being its location & name, as well as the page being viewed at 100%?? is there an option or way that when the file is opened and the Files Properties are uses to display the file?
    i think i got it all :-)

    this is my page
    where is htmlhead?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:selectitems="http://jboss.com/products/seam/selectitems/taglib"
         >
         <body>
              <ui:composition>
                   <f:view>
                        <h:form>
                        </h:form>
              </f:view>
         </ui:composition>
         </body>
    </html>

  • Open zip file with the OPEN DATASET statement.

    How?
    The zip file is a text file compressed.
    Thanks for answers.

    in application server no ZIP files exist...as such flat files exist which can be read using DATASET concept.

  • Opening external files

    Hello, im starting in flash, and i want to open external
    files with buttons, for a cd menu that i'm creating. I have created
    an fscommand folder and a launcher.bat that execute the file that i
    want when i press the button. But what i really want is to execut a
    file whatever it name is. For example i want to execute a .pdf file
    whitout calling it by the name to give me the chance to use de cd
    menu with various cds. Can anyoune help me with the code to the
    launcher.bat file? I have tryed start *.pdf but it didn't work.
    Thank you.

    does it have to be through a url, can't it be trough a path,
    like C:\file.rar or something like that? it's because the computer
    where i'm going to do the presentation does not have internet, so
    that way won't help me much

  • Hi can NE one tell me hwo to open an external file with it's defualt viewer

    hi can NE one tell me hwo to open an external file with it's defualt viewer
    e.g. open a .mdb file in access or a .txt file in notepad
    thnx
    help would be much apreciated

    hello can NE one help me?????

  • 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

  • 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.

  • 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.

  • I am unable to open files on amything!!! a box pops up that asks me what do i want to open the file with..every time!! I want files to open when i click on them!! This happens with emails, websites, everything

    I try to open attachments in emails and they will not open! A box comes up asking 'what do I want to open the file with', and it wants me to select from a list of options like - Firefox, IE, Word, Yahoo Browser. When I make a selection (usually Firefox) a new tab opens with a blank page! This always happens on attachments, links, websites......everything!

    These files were lost two years ago.
    That's not consistent with what you wrote in your first message. I can't help you unless I know what's going on. Either you do, or do not, have backups of all the data you want to keep. If you do not, then the first thing you need to do is back up those files. It makes zero sense to do anything else. In order to back up, you'll need either of two things: another Mac, in working order, with a FireWire port and enough space on its internal drive to hold your files; or an external drive, also with enough space.
    On the other hand, if you do have backups, or if you simply don't care about any of the data, then the solution to your problem may be quite simple. All you have to do is boot from your installation disc (your profile says you're running Mac OS 10.5), erase your internal drive, reinstall the Mac OS, then restore your data from backup. You will need to be selective in restoring software, because incompatible software may be what caused the issue.
    But it's also possible that you have a hardware failure, in which case you can't get your computer working again until it's repaired.

  • 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!

  • Issues opening RAW files with CS2...

    I find if a bit complicated to open RAW files with Photoshop CS2 in iPhoto 08 (I'm using OS X 10.5). Currently the only way I've been able to do this is do a search for the file name in the finder, at the bottom of the Finder window, in the path, double click on the folder that the RAW files are in (user/my name/pictures/iphoto library/originals/2007/RAW files), then highlight the NEF files (the cameras a Nikon D200) I want to open, hit command/O then Photoshop CS2 opens the files in the RAW converter. If I try this from CS2 (command/O) the path goes as for as iphoto library (user/my name/pictures/iphoto library), at this point the iphoto library icon is ghosted out and can not be opened. If I drag and drop the image from iPhoto to the CS2 icon in the dock it opens as a jpg not the RAW file I need. If I try clicking my way to the folder from the left side of the finder, my name/pictures/iphoto library this is as far as I can go. There's something strange going on here. How can you go to a folder only one way and not the others? There seems to "hidden" folders now.
    So... My question (finally), how can I simply open RAW files from iPhoto 08 in CS2?

    In iPhoto's Advanced preferences select the checkbox under RAW Photos: "Use RAW when using external editor". That will open the Cr2 file in the raw editor. To get the edit to show in iPhoto you'll need to click on the Open Image button so the jpg version is created with the edits you made to the RAW file. Then when you save you'll need to navigate in the Save window to the Modified folder and save it into the folder representing the event that the original is in. It's not easy. I've not done much with RAW, just a few tests, so there may be an easier way to get iPhoto to recognize the edited version.
    If you don't use the Open File and close iPhoto won't display the edits you made to the RAW file.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • 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.

  • Open external files

    I`ve been doing some research for a while, but haven`t found any solution for opening external files in my java app.
    Short about my problem:
    I`m giving users of the program the opportuninty to upload different kind of files. When a file is uploaded a label with the filename appears in the screen. When they click on the label I want my program to launch the correct program... Acrobat Reader for .PDF, Paint for jpg,gif.... aso.
    I found something similar that launch the cmd.exe, but it isn`t a general solution that opens all kinds of files...
    http://forum.java.sun.com/thread.jspa?threadID=625707&messageID=3569795
    As mentioned above I haven`t, so far, found a reliable solution for the problem, and I would have apprecated any kind of help.
    YS.
    Kaare

    Pre 1.6:
    JDIC
    org.jdesktop.jdic.desktop.Desktop.open(java.io.File)
    Java 6
    java.awt.Desktop.open(java.io.File)

  • Opening External Files using SWF

    Hi all,
    Is there a way to open external files using swf? I have gone
    through a number of forums and all seem to tell me to open with a
    window projector. my problem is, I need to embed the swf into a
    html to be viewed online... So I need to do it in swf format.
    Any ideas?

    When you say 'external files' I presume you mean local files
    on the users hard drive.
    If that's true:
    When you say 'open' what do you mean? It could mean to open
    and load a text file/xml file or another swf in flash or it could
    mean to launch a document in its native application e.g. .doc
    launches word etc. Flash projectors can do the first thing, but not
    the second thing. And you need to know the path of the file because
    I don't believe you can retreive it from the filereference browsing
    support. 3rd party tools are necessary to really add a lot of file
    system support to projector applications, and then you can do both
    things mentioned here, without the limitations of flash player
    security which is only slightly reduced with regular projector
    files.
    The filereference class in flash is primarily for
    upload/download support. You can't 'open' local files with it.
    There is, to my current knowledge, no way you can do that with
    flash in a html page directly.
    The only way I can think that it might be possible (untested)
    would be to have a separate local MS Office (or any other host for
    a flash activex that gives filesystem access) with some embedded
    flash in a document that (perhaps) could talk via local connection
    with your html page content and which would in turn talk to its VBA
    host to request local file system activity. I don't know if this
    would work because I've not used localconnection, but perhaps it
    might.

  • Is there any photoshop API functions can let me open a file with photoshop in my plugin?

    I used  the function system("open file"), it works well in any other program.
    For example, system("open 1.psd"), this code can use photoshop open the file 1.psd .
    But it just don't work in my plugin program.
    How can I use photoshop to open a file in filter plugin at Mac OS X?
    Is there any photoshop API functions can let me open a file with photoshop in my plugin?

    Go to settings> general and scroll down to multitasking geastures, turn them on and by swiping with four fingers from the right side of the iPad to the left and back you can switch between apps. I think this is what you need I'm not sure, I hope it helps

Maybe you are looking for

  • How to do a search box in flash?

    i would like to create a searchbox in my website, please help, this could seach in my website or a search in google thanks in advance!

  • Got a new hard drive, system now has very short freezes when being used

    Hello there! I recently got a new hard drive, 1 TB from 320, and i have been having an issue where the computer seems to freeze for about half a second and then go back to normal. This happens on multiple apps and accounts. i have had it happen in sa

  • What SCSI card do i need for new Mac Pro?

    hello all, can anybody give me a straight answer on the cheapest SCSI card I can buy from UK, to fit in my Mac Pro. I have googled and searched the forums and am getting confused by talk of all the different types. I have borrowed an old neg scanner,

  • Content server/Repositary

    1) Is content serverver and content repositary is same term? 2) How to define default storage catogory ? Steps Please. 3)We have SAP ECC6.0.In the systems landscape we have D-100/120/110 ,Q200/100 AND PP-100 when we take copy of client PP-100 into ot

  • Where can I get the source code for sun classes?

    Hello, When ever you download sun's j2sdk, the archive always contains the source code for the entire sdk in a zip file called src.zip except the sun.xxx classes like sun.awt.print.PrintDialog or sun.awt.font.FontResolver. For debugging purposes I ne