Ok...I could SWEAR it worked perfectly once! But now I'm getting:

ERROR : undefined variable [$OS]!
Line : 14

Line 14 is the following, of course - $OS="@dos"

If I comment out Line 7 ;$SO=SetOption("Explicit", "ON") it gets further but errors out on Line : 27 - Use N: $public

ERROR : error in USE statement!
Line : 27


I tested by creating a logontest.bat file which points to file kixtest.kix file. I run once I've already logged in to the desktop in Windows. Should that make a difference on the outcome? My original logon.bat seems to run aok from the desktop. Or maybe I need to update my kix32.exe file to the latest? I'm running 4.22, I believe. Thx.