frank holland
11th June 2012, 09:44
Hi,

I would like to retrieve the name of the local windows client in a script.

I searched the development forum, and found one thread about the function get.client.hostname(); however, I cannot compile this function in BaanIV. Does someone know if it exists in BaanIV, and if yes, in which include or dll?

Thanks,
Frank

P.S.
I know the trick to use a local batch file to retrieve a client environment variable, but using a standard funtion would be easier...

bdittmar
11th June 2012, 10:00
Hi,

I would like to retrieve the name of the local windows client in a script.

I searched the development forum, and found one thread about the function get.client.hostname(); however, I cannot compile this function in BaanIV. Does someone know if it exists in BaanIV, and if yes, in which include or dll?

Thanks,
Frank

P.S.
I know the trick to use a local batch file to retrieve a client environment variable, but using a standard funtion would be easier...

Hello Frank,
havn't found it in ERP-Progguide, but in LN Progguide.
AFAIK it only exist in LN.

Regards

JaapJD
11th June 2012, 13:25
You can use get.bw.hostname() in BaanIV.

frank holland
11th June 2012, 15:04
Hi Jaap,

I also cannot compile this function.

Do I have to add any include or dll (I tried bic_tt and ttdllbw)?

Groeten,
Frank

frank holland
11th June 2012, 15:13
Hi Jaap,

I found out that this function was missing on a server with an old service pack status. On a server with actual tools software it works!

Thanks a lot,
Frank

JaapJD
11th June 2012, 15:14
OK, good luck.