How to find complete path of a file in computer by java

Hi frens !!
i want to have a simple java program which takes the input file name say one.html and yields the complete path of the that file ,which is already stored somewhere in computer.
my problem is that i am not getting the method in java ,which could do the same.i am using jdk 1.4.
Thanks
Allwyn

simply PATHETIC !!!
btw thanks for advise.The options are:
- Search your computer manually for the file, TELL your code where it is by typing in the path.
- Have some operating system tool (e.g. Windows Explorere) search your hard drive for you. When it finds it, TELL your code where it is by type in the path.
- TEACH your code how to search your entire computer, all hard drives, all directories, for the file by that name.
- Create a new file by that name, either in the 'current' directory (which it appears you alraedy have), or some other path you give it.
- go hungry

Similar Messages

  • How to find the path of the file at enduser system

    Hi  Frndz..
    Am per my requirement i need to read XL file from enduser PC, for this i need to kno the path on the enduser PC i.e . ,lets assume that test.xsl file is there an enduser PC on his desktop , so i need the path where its like  "C:\Docsandsettings\desktop\test.xsl"..
    Plz suggest me
    Regards
    Rajesh

    Hi,
    You have to first upload this file using fileupload UI element.
    Then you can do the rest.
    Following tutorial will explain you it in detail
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    Regards
    Ayyapparaj

  • How to get complete path when uploading a file in Mozzila

    Hi
    I was trying to upload a file using html code
    <input type="file" name="cdrfile">
    then I wrote
    <% = request.getParameter("cdrfile")%>
    trying to get the path and the file name. But Mozilla doesn't return me the complete path only the file name. Does anyone know how to get the complete path in Mozilla?
    Cheers
    M

    Deliberate double post:
    http://forum.java.sun.com/thread.jspa?threadID=5147786&messageID=9551206#9551206

  • How to find out the source program file in Proposal in Sales Online in CRM

    How to find out the source program file in Proposal in Sales Online in CRM

    You can find it in the oracle->apps->prp directory.
    It is the $JAVA_HOME

  • Function Module to find the Path of the file in the Application Server

    Hi All,
            Any function module available to find the path of the file stored in the application server. Please let me know.
    Thanks.

    Check this code:
      DATA: dl_file TYPE ibipparms-path.    " File name
      CONSTANTS: c_dir       TYPE  rlgrap-filename.
    * F4 filename for Application server
        CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
          EXPORTING
            directory        = c_dir
            filemask         = ' '
          IMPORTING
            serverfile       = dl_file
          EXCEPTIONS
            canceled_by_user = 1
            OTHERS           = 2.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Error while getting the file name'(006).
          EXIT.
        ELSE.
          p_file =  dl_file.
        ENDIF.
    Thanks & Regards,
    Siri.
    Message was edited by:
            Srilatha T

  • How 2 get the path of a file

    how 2 get the path of a file Using jsp
    i have tried getPath...but i'm geting the error
    The method getPath(String) is undefined for the type HttpServletRequest
    any idea how 2 get the path of a file

    You need ServletContext#getRealPath().
    API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • How 2 get the path of a file Using jsp

    how 2 get the path of a file Using jsp
    i have tried getPath...but i'm geting the error
    The method getPath(String) is undefined for the type HttpServletRequest
    any idea how 2 get the path of a file

    You need ServletContext#getRealPath().
    API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • How to find my iphone back up file in pc without iphone connect

    How to find my iphone back up file in itune without connect my iphone? I lost my phone and urgently need to find my contacts in PC, anyone can help?

    You don't. It's gone. You should really pay more attention to the prompts that pop up on your computer before you just click 'ok'.

  • I have a cannon mg2100. When I scan the error message says it can't find a path to the file

    My cannon mg1200 prints and scans but suddenly the scanned photo/doc can't find a path to any file.  I just started having this problem yesterday.  

    Hi, trikerider47!
    So that the Community can help you better, we will need to know exactly which operating system is running on your computer (Windows or Mac, and which version thereof). That, and any other details you'd like to give will help the Community better understand your issue!
    If this is a time-sensitive matter, our US-based technical support team is standing by, ready to help 24/7 via Email at http://bit.ly/EmailCanon or by phone at 1-800-OK-CANON (1-800-652-2666) weekdays between 10 AM and 10 PM ET (7 AM to 7 PM PT).
    Thanks and have a great day!

  • HOW TO FIND MENU PATH FOR A TCODE

    PLZ TELL ME HOW TO FIND MENU PATH FOR A TCODE .
    I HAVE MADE A MENU ENHANCEMENT  WITH TCODE +DW2.
    IT MENU PATH IS NOT TRACEABLE.

    Hi Madan,
    It is in the transaction code <b>S001</b>.
    Check my previous post on this.
    It is not listed on the SAP Menu. Thats why SEARCH_SAP_MENU returns nothing...
    <b>Go to the Initial Screen and then type /n in the TCODE.
    From there now type S001 to go to transaction S001.</b>
    The other ways do not work. Like combining both in a single step : "/ns001".

  • HT4007 I have just transferred all my raw, jpeg & tiff files into LR4 and using to opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my msc disc??

    I have just transferred all my raw, jpeg & tiff files into LR4 and using the  opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my mac disc??

    I'd be careful here: LR references files. It can copy them, like from an SD card to your hard drive, but it doesn't necessarily make duplicates. So when you say you "transferred" those files "into" LR it just means you referenced existing files. And if you delete those they're gone, unless you've made copies. LR does not import files by copying them into a managed library like Aperture does.

  • How to trace changes in directories and files in windows using java.

    Hi,
    Want to know how to trace changes in directories and files in windows using java.
    I need to create a java procedure that keeps track of any changes done in any directory and its files on a windows System and save this data.
    Edited by: shruti.ggn on Mar 20, 2009 1:56 AM

    chk out the bellow list,get the xml and make the procedure.....     
         Notes          
    1     Some of the similar software’s include HoneyBow, honeytrap, honeyC, captureHPC, honeymole, captureBAT, nepenthes.     
    2     Some of the other hacking software’s include keyloggers. Keyloggers are used for monitoring the keystrokes typed by the user so that we can get the info or passwords one is typing. Some of the keyloggers include remote monitoring capability, it means that we can send the remote file across the network to someone else and then we can monitor the key strokes of that remote pc. Some of the famous keyloggers include win-spy, real-spy, family keylogger and stealth spy.          
    3     Apart from theses tools mentioned above there are some more tools to include that are deepfreeze, Elcomsoft password cracking tools, Online DFS, StegAlyzer, Log analysis tools such as sawmill, etc.

  • How to get the complete path of the file that is selected using FormFile

    i m working on struts..
    i hv used FormFile like
    <html:file property="xsdpath" value="Browse" />
    need to get the whole path that i will select using browse button
    for example d:\foldername\filename.java
    but FormFile Api has a method getFileName(); which returns the filename, for getting the absolute path wat has to be done.
    please reply bak soon
    thanks in advance

    here i use formfile <html:file> just to allow the
    user to select a xml file .
    so i need to get the whole path of the selectedfile
    to parse the xml file.No you dont.
    You would definitely benefit from further reading on
    file upload.
    <html:file> tag renders an HTML <input> element of
    type file.
    When a user uploads a file, this file is sent as a
    stream of data, which a program (jsp/servlet) on the
    server, reads and stores the data back in the form
    of a file on the server.
    Any server program that needs to parse the file,
    should do so on the file stored on the server.
    There's no point in knowing the absolute path of the
    file on the client machine. If a server program can
    parse a file on the client machine, why upload the
    file in first case ? Get the drift ?
    i also want to show my user the path he hadselected.
    If you have such a requirement, then yes.
    But it sounds weird to me. If you see my response
    above, you will realize that the server has a copy of
    the client's file uploaded and then parsed. What if
    the client has changed his file after upload ?
    cheers,
    ram.I also have a requirement to get the whole filepath of the file selected and place this information into a table. From FormFile I can only retreive the absolute filename
    Any suggestions would be helpful.
    Thanks, dam

  • How to find  full path

    Hi,
    how to find the directory total path where my java programm is running programatically?
    thanks in advance....

    hi,
    Try
    System.out.println("Working directory: " + new File(".").getAbsolutePath());
    Anil.
    Developer Technical Support
    Sun Microsystems Inc,
    http://www.sun.com/developers/support

  • How to find Brows() path?

    I am working with flash.net.FileReference, I am using the brows function, and I know how to find the chosen file name, but I need the whole path, now how can I do that?

    So I can use images from my user machine directly insteed of
    uploading/downloading them.
    2009/8/24 p_m_williams <[email protected]>
    This information is not available on FileReference. As far as I know it
    is for security reasons. What do you need the path for?
    >

Maybe you are looking for

  • Battery checks say change battery, but it charges and works fine. Help?

    Hey there, Just having a problem with my Laptop battery. My product type is a HP G61 Notebook PC. The battery icon in the bottom left says the battery should be replaced, with checks saying it has reached the end of it's useful life. I find this hard

  • Apple wired keyboard - certain keys not working with shift

    I treated myself to a new Apple wired keyboard MB110B/A for my mac mini. My previous keyboard worked fine, however the new keyboard causes the computer to enter the Hardware Test mode every time the computer is restarted. The computer only starts nor

  • 3 Class Investment Account

    I am writing a three class Investment Account program with the three classes being AccountInterface, AccountModel and Account. One of the butttonclick options is to save the data entered for a certain account (name, age, deposit, rate) Without using

  • Invalid adapter name"c/CVI Flexible Prototype Adapter" Error code:-17336.

    Hi, After replacing the mainboard of the test computer and activating Windows, test station shows "Invalid adapter name"c/CVI Flexible Prototype Adapter" . Invalid adapter name. Error code:-17336"  when we try to run TestStand Sequence(4.2.1.83). Cou

  • Validate an unrelated domain in Azure

    My Microsoft Partner Account (MAPS Subscription) uses a different email address from my registered domain.  The problem is that I have used my registered domain name in the Azure setup.  As such my domain can not be validated in Azure.  How can I sol