Results 1 to 2 of 2
  1. #1
    Mukta is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default How to get the absolute path of a file in network drive

    Hi,

    I am writing a java code wherein I am required to get the absolute path of a file which is there in the network drive. For eg. I am connected to an internal network. I can access any file or folder in the network. Now if I want to get the absolute path of the folder/file, how is it possible?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,771
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Mukta View Post
    Hi,

    I am writing a java code wherein I am required to get the absolute path of a file which is there in the network drive. For eg. I am connected to an internal network. I can access any file or folder in the network. Now if I want to get the absolute path of the folder/file, how is it possible?
    Does the File.getAbsolutePath() method help you?

    kind regards,

    Jos

Similar Threads

  1. Java Based Application to Map Network Drive
    By Wraithier in forum New To Java
    Replies: 15
    Last Post: 05-24-2012, 12:09 PM
  2. Best way to format a drive/thumb drive in java...
    By vandyke in forum Advanced Java
    Replies: 1
    Last Post: 12-09-2009, 02:32 AM
  3. Signed Java Applet to read a file on hard drive?
    By ollyworks in forum Java Applets
    Replies: 2
    Last Post: 09-11-2009, 11:08 PM
  4. sending file over network
    By qwerty in forum Networking
    Replies: 6
    Last Post: 04-25-2009, 02:55 AM
  5. Specifying absolute path in web.xml
    By Felissa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-05-2007, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •