Is there a function available that returns the name of the computer/workstation?
Is there a function available that returns the name of the computer/workstation?
Hello,
You can try this :
cName:=getenv("COMPUTERNAME")
this it's ok in Windows Vista Busines.
Atte.,
Lautaro Moreira
Pd. : Sorry for my bad english
Usas NetName() de CT.LIB tambien.
cdmmaui wrote:Is there a function available that returns the name of the computer/workstation?
Thank You, that is what I needed
Should this work with Habour, too.
Harbour returns:
NetName() -> Computer Name
NetName(.t.) -> not Logged-in User Name but also Computer Name
Regards,
Otto