You should also be able to use the java.io.File object to get that
information.
(*Chris*)
----- Original Message -----
From: Helton Richard <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 1999 9:16 AM
Subject: Re: How to get the current directory name?
> Look at getProperty for user's current directory, otherwise do an exec()on
"dir"
> in WINNT or "ls" in UNIX.
>
> http://java.sun.com/docs/books/tutorial/essential/system/properties.html
>
> -----Original Message-----
> From: Xizhen Wang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 28, 1999 8:47 PM
> To: [EMAIL PROTECTED]
> Subject: How to get the current directory name?
>
>
> hi! all,
>
> I want to know how to get the current directory name in java code? Can
> anyone help me?
>
> Thank you!
>
> Xizhen
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html