gethostname

Gets the hostname.

gethostname <strvar>

Remarks

Retrieves the connecting hostname of Tera Term and stores it in the string variable <strvar>.

Example

testlink
if result > 0 then
    gethostname hostname
    messagebox hostname result
end if