Open a file in same directory as app

I am trying to open a separate app that is in the same folder as the form app i'm using. Is there a way to do it so i can move the folder with the files in it from computer to computer and still have it work. I'm trying to open it with a jbutton
Thanks
Edited by: aschreiner22 on Apr 21, 2008 3:33 PM

aschreiner22 wrote:
either another app, Look up the Process and Runtime class of the Java api. Usually if you want to execute another application like an .exe you would do this:
Process p = Runtime.getRuntime().exec("anotherApp.exe");
or a class embedded in an html.A class embedded in an html file? usually an Applet class. You can open the applet class like how you open other Java classes.
SampleAppletClass sample = SampleAppletClass();A word of advice, try Google and search your questions in this forum before asking. Chances are that other people have already ask them. Lot of users of this forum do not like to answer questions that have been asked before. You may receive unpleasant replies if you're not careful.
have a nice day!

Similar Messages

  • Can I import and open raw files on the new photo app?

    Hi,
    Can I import and open raw files on the new photos app on my ipad?  Does it convert it to jpeg automatically when you want to share them?
    Thanks.

    Clem is telling you to click on the View menu, move the pointer down to the item "Metadata," & from its choices make sure "Show Titles" is selected. Do this, then make sure you are in a view in the main window that shows one or more videos (or whatever) that you want to title. Click once on one of them, & if the separate Info window is not open, open that (on the Windows menu or command + i as a keyboard shortcut). In the Info window the top line will be "Add a Title."
    Click once on that & type your title.
    This works for any item, video or photo.

  • Opening a file shuts down my iPad app

    I've opened my campus map via my adobe iPad app. Every time I open it now in the app, it just shuts the app down. I've tried deleting and uploading a new PDF file. I've tried turning my iPad off and back on again.

    Hi,
    Adobe version 10.4.4
    iOS version 6.1.2
    Ive downloaded the campus map of my univerity. I open it up using adobe and it works fine the first time.
    Its when I go back into the adobe app to look at the map again, it begins to open it up, then just shuts down.
    It doesnt always happen, sometimes the app does open it up!!
    Ive not used the adobe app much since, so I cant tell you if it happens with other documents.
    Tina
    0421450636
    Date: Fri, 1 Mar 2013 02:22:00 -0800
    From: [email protected]
    To: [email protected]
    Subject: Opening a file shuts down my iPad app
    Re: Opening a file shuts down my iPad app created by Anki(AG) in Adobe Reader for iOS - View the full discussion
    Hi,
    Could you please let us know the version od Adobe Reader you are using on your device?
    Also please let us know the iOS version.
    From what is written in the post above, as soon as you open the file in Adobe Reader, the app shuts down.
    Thanks,
    Ankit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5113111#5113111
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5113111#5113111
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5113111#5113111. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader for iOS by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • How to open a file in any directory not only in current  DIR

    hi
    i am new to java .
    i have written the code for opening a file and reading the opened file.
    i used filedialog to select a file for opening.
    problem is it is opening a file only in the cuurent working directory.
    i.e FileDialog.getFile() only returning the file name .what should i do to get the entire path of the file so that i can open a file any where in my System.

    plz give replies
    fileDialog.getDirectory() + fileDialog.getFile()

  • Open Dynamic file in a Directory

    Hi,
    I Have a Directory name like "Location" in that directory the users are post daily a file like IL0012, IL0013,ILdd like that.So i wnat to open that file in read mode so i tried to open like this
    f1 utl_file.file_type;
    begin
    f1:=utl_file.fopen(location,'%IL%','r',6000);
    end.
    like that above i have permisions to Location directory.and also after reading file i want to delete that file If i have a fixed filen name i ma bale to read file but the problem is for dynamic file name.
    any help

    Your problem is not clear. What is the problem with dynamic file? Do you want to work with a single file or multiple files in that directory? If it is a single file then how do you determine which file you want to work with?
    If you want to work with all the files there then probably try something like, loop through some dynamic construction of IL followed by 4 character left padded value of number from 1 to 31/365/whatever you want.
    use the UTL_FILE.FGETATTR to know if the file exists, open it, read it and do what you want.
    use the UTL_FILE.FREMOVE to delete the file, if you have permissions.
    PS: I don't have permissions here to demonstrate an example.
    HTH

  • Opening .pdf files in same window

    I'm new to AA9 but have used AA7 for a long time.  In AA7, if I had a .pdf file already open on the desktop, and I opened another file by double-clicking on it, the new file would open in the same window.  Then, I could close that file within the window and toggle between numerous files from the "minimize/maximize/close" icons in the window.  Since I work with a lot of maps, it was very convenient to have the icons lined up across the bottom of the page, and open and close them as needed.  Now, with AA9, when I double-click, it opens a new window, complete with all the toolbar icons etc. This is very inconvenient by comparison, and I don't know how to change it.   I've looked through preferences and cannot find an option to fix this.  Is this something I won't be able to accomplish in AA9?  If so, I will go back to using AA7, but I like some of the other features of AA9, so I hope someone knows how to reset this function.  (FYI, I'm using Windows 7, 64-bit, Intel Core 2 Duo, T9600, 6GM RAM, Nvidia GeForce GT230M w/ 1GB DDR memory).  My version of AA9 Pro is part of Adobe Creative Suite CS4.  Thanks.

    Hi misterbill1717,
    Using Windows 7, 64-bit and Acrobat 7 will result in problematic performance of Acrobat 7.
    Acrobat releases prior to 9.2 are not supported by Adobe in Windows 7.
    As to Acrobat 7 and 64-bit, see this TechNote:
    http://kb2.adobe.com/cps/331/331732.html
    So the fundamental issue will be Acrobat 7 in Windows 7.
    As to your other concern.
    It sounds like you are describing the Multiple Document Interface (MDI) available in the Adobe Reader/Acrobat 8 release(s).
    As the article below (via the link) states, Single Document Interface (SDI) was the default in the Adobe Reader/Acrobat 8 release(s).
    Change to MDI, with release 8, requires the user to perform the following:
    Edit > Preferences > from the Categories: pane, select "Documents" > in the Open Settings pane >
    select/check the first (top) entry "Show each document in its own window (requires restart)
    Then "OK", close open appliations and restart the local machine.
    Now, when one right clicks a link to access the context menu, they can "Open Link in New Window".
    In release 9 of Adobe Reader/Acrobat this is no longer available. The article, at the link below, explains why.
    Multiple Document Interface (MDI) was dropped in Acrobat 9. For further information check out this article.
    MDI vs SDI in Acrobat
    http://blogs.adobe.com/acrobat/2008/09/mdi_vs_sdi_in_acrobat.html
    Also:
    Preference "Show each document in its own window (requires restart)" no longer available in Acrobat/Reader 9.0
    TechNote ID: kb405108
    http://kb2.adobe.com/cps/405/kb405108.html
    Be well...

  • Open quicktime files in same window

    Hi there,
    as a matter of fact QuickTime is pre-configured to open files in a new window, which get's really annoying when playing a TV series.
    Is it possible to configure QuickTime to open new files within the same window, so that I don't have to manually close the old file?
    I would really appreciate any help regarding this topic, cause I couldn't find anything about this anywhere else.
    Thank you very much!
    Max

    Hi,
    In quicktime 7, preferences/deselect "open movies in new player". Quicktime X I don't have so can't help you, but a lot of folks are going back to 7 which should be in your utilities folder.
    DM

  • I have PSD cc, had cs6 ex I did update, can't open ANY files,  reinstalled, same..dead programs

    I work in PSD cs6 ex constantly,  recently i updated to cc. Today I can't open any file, Recent, old, make a new, open from library etc,  NOTHING will open, i request a file,  programs act like they are deaf. They arent locked up, just dont open or create files.  Everything on my com is updated. I uninstalled and reinstalled and same. Also I no longer can install cs6 just CC.

    Even the term "I request a file" is ambiguous.
    Please provide more detailed information.  Ideally, show some screen grabs showing what you are seeing, and identify just what isn't working.
    Best advice, based on no specific information provided, is to uninstall using the Adobe Creative Cloud Cleaner Tool / process to really get everything cleaned up, then reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html
    -Noel

  • Is it possible to open Excel file in XAML Windows Store App?

    Hi,
    I want open excel file from local folder(not from Url) within the windows store app.
    Could you please help me how to implement ?
    Thanks,
    Siva varri
    Thread response from msdn

    Hi,
    If you want to open an excel file by a windows store app. There is no direct API in windows store app can handle excel file. You will need to find a third party component. But
    if you want to launch a file into its default handler, please see 
    Launcher.LaunchFileAsync API. And you can refer to the link below:
    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779671.aspx
    private async void Button_Click(object sender, RoutedEventArgs e)
    StorageFolder storageFolder =
    Windows.Storage.ApplicationData.Current.LocalFolder;
    StorageFile file =
    await storageFolder.GetFileAsync("56.xlsx");
    if (file != null)
    // Launch the retrieved file
    var success = await Windows.System.Launcher.LaunchFileAsync(file);
    if (success)
    // File launched
    else
    // File launch failed
    else
    // Could not find file
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Open Excel File from oracle directory on a local machine

    Hi,
    I have an application where I generate a excel using data in a table and write excel file in oracle directory.Now my requirement is to open that file from local machine .How can i achieve it.
    I am using Apex 4.2,Oracle 10g .
    Thanks
    Rajan.C
    Edited by: Rajanjai on May 31, 2013 5:34 PM

    Close your question here and open here
    Oracle Discussion Forums » Oracle Database » Application Express

  • Generate file in same directory as current running process

    Hi all:
    I basically have a batch file in a particular directory that runs a Java program. Within the program, I am doing this:
    //generate contact server file
    String contactServer = "Testing...";
    BufferedWriter bw = new BufferedWriter(new FileWriter("contactServer.txt"));
    bw.write(contactServer, 0, contactServer.length());
    bw.close();Now, what I would expect is that it would be generated in the same directory as the process that is running. However, when I do a search, it ends up in C:\Documents and Settings\Leonard\My Recent Documents.
    How can I specify to generate it in the same directory as the current running process?

    Now, what I would expect is that it would begenerated in the same directory as the process that is
    running. However, when I do a search, it ends up inC:\Documents and Settings\Leonard\My Recent
    Documents.let say your batch file is in
    C:\Documents and Settings\Leonard\
    and you run from
    C:\Documents and Settings\Leonard\
    and your application is in
    C:\Documents and Settings\Leonard\My Recent Documents.
    so..when you run the bat file, is output file created
    in
    C:\Documents and Settings\Leonard\
    or
    C:\Documents and Settings\Leonard\My Recent Documents.
    it should be created in C:\Documents and
    Settings\Leonard\
    unless you create a shortcut to the batch file (which
    is located in "C:\Documents and Settings\Leonard\My
    Recent Documents." and move the shortcaut batch file
    to "C:\Documents and Settings\Leonard\"...than the
    output file will be created in C:\Documents and
    Settings\Leonard\My Recent Documents.
    make sure the batch file is not a shortcut to the
    original batch file. the file will be created
    wherever the batch (original) file is reside in"
    Jesus man, thank you so much. Just like you suggested, when I actually used the batch file itself instead of the shortcut, everything worked out fine.
    So, any suggestions on how to get it to generate in the same directory as the target of the shortcut, not the shortcut itself?

  • List of files in a directory of app server

    Hi,
    I was trying to get the list of all files in a directory using fm "EPS2_GET_DIRECTORY_LISTING". But the date column is empty in the output table. I also tried fm's
    SUBST_GET_FILE_LIST
    EPS_GET_FILE_ATTRIBUTES
    none of the above is giving date.
    Can anyone tell me a fm which gives date along with other attributes?
    Thanks in Advance.
    Satish

    try get something from the transaction AL11 source code: RSWATCH0 form -> fill_file_list
    Regards,
    Vincent

  • Linking to a file in same directory?

    I am working with someone else to design a site, he is coding some pages and including a form. I want to link to this form on a page and I was told that it will be in the same directory as the rest of the site. I was told to use the following path:
    /teachers_staff/staffquestions
    How do I add this path to a link?
    Thanks.

    Hi Stan,
    in addition to osgood_'s hint, I would like to show you the steps in (Germam) DW:
    I named this page "form.html" and put it in a directory called "/teachers_staff/staffquestions". As osgood_ said, I did "Highlight the text on your page that you want to be the link" here "form.html" and used (Grmna DW) insert a Hyperlink, like this:
    Here I got DW's offer (among others in this directory) to pick "form.html":
    After that the link is active. In your source code you will find this:
    <p><a href="form.html">form.html </a></p>
    Hans-G.

  • Getting files of a directory in app server

    Hi,
    Is there any FM or method to get all the files of a directory ( in the application server )if its path is given as input.
    It should list the file name, creation date and also size.
    Thanks,
    Nawaz.

    Hi,
    you can use the follow code:
    REPORT  zdirtest.
    DATA lv_dir TYPE rsmrgstr-path VALUE '/usr/sap/trans/data'.
    DATA: wa_files  TYPE rsfillst,
          it_files  LIKE TABLE OF wa_files.
    START-OF-SELECTION.
      CALL FUNCTION 'SUBST_GET_FILE_LIST'
        EXPORTING
          dirname      = lv_dir
          filenm       = '*'
        TABLES
          file_list    = it_files
        EXCEPTIONS
          access_error = 1
          OTHERS       = 2.
      IF  sy-subrc  <>   0.
        WRITE /1 'Error! :-('.
      ELSE.
        LOOP AT it_files INTO wa_files.
          WRITE: /1 wa_files-name,
                    wa_files-len.
        ENDLOOP.
      ENDIF.
    However the field <b>MTIME</b> from the structure <b>RSFIILST</b> is not filled correctly with the number of seconds since 1970 because the field is defined to small.
    So you can't list the correct modification date and time.
    If you really need this, you should take a look in the Report <b>RSWATCH0</b> in the form <b>fill_file_list</b>.
    This form fills an internal table with the correctly modification date and time.
    Regards,
    Stefan

Maybe you are looking for