I want to be able to distribute our virus software if the kixtart logon script does not detect a certain registry entry.

Assuming we're working only on WINNT, I've scripted the following:

:check registry entries to install inoculan if not intalled

EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\Cheyenne\InocuLAN")
If @ERROR = 1
shell "C:\COMMAND.COM /C"+@LDRIVE+" \inoc.bat"
end if

I pulled the "EXISTKEY.." function from a sample script web site, but it doesn't seem to be working correctly. How do I get Kixtart to look for a registry key, and if it doesn't find it, call a batch file. If it does find it, I just want it to bypass the routine...

Thanks

Nathan Ely, MCSE
TEKSystems, Inc