User ( posted:

It's stored in the "LastScript" variable in the Windows Registry. For
Robot 2000.02.10, it's in HKEY_CURRENT_USER\Software\Rational
Software\Rational Test\7\Robot\Robot\. You can use the Windows API
function "RegistryGetKeyValue" to retrieve it.

This question has been answered at least once in the last week. See
postings for last week for other responses.