The function
lisp-image-name
returns a string representing the full path to the running LispWorks image. The example below is in typical LispWorks for Windows and LispWorks for Linux installations. In resaved and delivered images (including Windows DLLs), the appropriate path is returned.
CL-USER 1 > (lisp-image-name)
"C:\\Program Files\\Xanalys\\LispWorks\\lispworks-4200.exe"
CL-USER 1 > (lisp-image-name)
"/usr/bin/lispworks-4200"