> is that name the same name that a windows client would refer to if it had
to
> reference that network resource (in a UNC)?
Depends how the network drive was configured (in Samba I guess, if it's a
Unix server)
It's the name the *server* thinks it has. Not really any way for the server
to know what the client thinks it's called. I think. Confused? You will be,
after this week's episode of SOAP.
Sorry!
Kerry
>
> Thanks,
>
> Phil.
>
>
>
>
> "Kerry Sainsbury" <[EMAIL PROTECTED]> on 21/02/2000 20:03:16
>
> Please respond to [EMAIL PROTECTED]
>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> cc: (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
>
> Subject: Re: [DUG]: Client/middleware storage
>
>
>
> > I guess this is probably more a java question maybe? I don't know. As I
> said,
> > our network expert yada yada yada.....
>
> The way to find out the name of the current machine is:
>
> try {
> java.net.InetAddress me = java.net.InetAddress.getLocalHost( );
> System.out.println( me.getHostName() );
> }
> catch ( java.lang.Exception ex ) {
> System.out.println( "Darn it " + ex.getMessage() );
> }
>
> Cheers,
> Kerry Sainsbury
> Inprise/Borland New Zealand
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
>
>
>
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz