Keine Ahnung, warum HOSTNAME nicht funktioniert. Du kannst ihn aber auch einfach per Shell abfragen:

  dim sh as new Shell
  if not (sh Is nil) then
    sh.execute "echo $HOSTNAME"
    ComputerHostname = sh.result
    sh = nil
  end if


Am 20.01.2010 um 08:06 schrieb Klemens Klarhoelter:

ComputerHostname=System.EnvironmentVariable("HOSTNAME")

Gruß
Christian

----------------------------------------
Christian Dorn
realbasic {a} online.de

REALbasic 2009r3 Studio

iMac 3.06 GHz Intel Core 2 Duo, 4 GB RAM
Mac OS X 10.6.1

PowerMac G5 2x2GHz, 1.5 GB RAM
Mac OS X 10.5.8

Ubuntu Linux 9.04 on Parallels Desktop 4.0
Kernel 2.6.28-15-generic
GNOME 2.26.1
----------------------------------------








Antwort per Email an