Capturing LOCALHOST

I’m trying to determine the terminal ID for an audit log of each time a record is created or modified.

I want to do this by capturing the LOCALHOST value given by the client side Windows, but I can’t for the life of me work out how to do this efficiently.

The best I have come up with so far is to execute shell to run the LOCALHOST command and pipe the output to a text file. Then read the contents of that text file into a field within the record using the ASCII driver.

I cannot believe that is the best as it’s not very efficient and has the aerodynamic quality of a brick.

Can anyone suggest anything else?

I’ve not found anything in the help or documentation so far.

The app I’m creating is very small scale and runs as a standard windows app not a web app.

Thanks in advance.

B

You can use the Windows API.

1 Like

It’s a bit involved - take a look at the zip file attached.GetAdaptersInfo.zip (5.5 KB)

1 Like

Thanks @BoxSoft (Mike) and @Graham_Dawson (Graham)

B