Help Required

  • Thread starter Thread starter Mike Frith
  • Start date Start date
M

Mike Frith

Hey Guys.

I'm trying to build a form in Access 97 that the user can enter an IP
address on, and then have the Host Name resolved from DNS and the MAC
address displayed from an NBTSTAT call.

I realise that this requires API programming knowledge of which,
unfortunatly, I don't possess.

Can someone help out?

Thanks,

Mike
 
Don't see why you need API
Shell the NBSTAT command, and redirect the output to a file,
Shell NBSTAT > C:\Status.txt 'Insert filename of your choice here
WaitAWhile 'For the action to complete. You can make MSA wait on the
shell command, but I forget how
import the file
docmd.TransferText...

Regards Greg Kraushaar
Wentworth Falls Australia
(Do not email - the reply address is a Spam spoofer)
(If you really must, remove all UCase and numbers)
 
You can easily do winsock API calls from VBA, but you will have little if
any luck finding VBA code to wrap & unwrap the DNS request packets :-(

Maybe shell-out to NSLOOKUP (or whatever it is)?

TC
 
Back
Top