http://discussion.autodesk.com/thread.jspa?messageID=1195544
;;############### Begin GetIP.lsp ############### (defun getIP ( / Reg-Key ipAddy)
(setq Reg-Key (strcat "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\" (car (vl-registry-descendents "HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services\\")) "\\Parameters\\Tcpip") )
(setq ipAddy (vl-registry-read Reg-Key "DhcpIPAddress"))
ipAddy )
;;############### End GetIP.lsp ############### |