How

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tomek

    How

    Hello.

    How to get path to current directory and put this path to object of class
    String?
    I found FileSystemView. getHomeDirector y() but it returns path to home
    directory for example:

    C:\Documments and Settings\Thomas

    Thanks for help.
  • Phil...

    #2
    Re: How

    String wd = System.getPrope rty("user.dir") ;

    "Tomek" <pantomaszw@poc zta.onet.pl> wrote in message
    news:a111218d.0 310020429.d02bf d8@posting.goog le.com...[color=blue]
    > Hello.
    >
    > How to get path to current directory and put this path to object of class
    > String?
    > I found FileSystemView. getHomeDirector y() but it returns path to home
    > directory for example:
    >
    > C:\Documments and Settings\Thomas
    >
    > Thanks for help.[/color]


    Comment

    Working...