Thanks Kerry,

is that name the same name that a windows client would refer to if it had to
reference that network resource (in a UNC)?

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

Reply via email to