I have all the scripts working now.

but still there is one litle problem.

for the startup script i want to let the script read a regkey so if that one exist it will skip the rest of the script.

the script itself in a name.cmd so NOT a kix script.
What is the correct syntax of the if statement in do to see is an key exist?

i tried:
IF EXIST ("HKEY_LOCAL_MACHINE\SOFTWARE\Installed\OutlookTool")
GOTO :end
ELSE

IF EXIST ('HKEY_LOCAL_MACHINE\SOFTWARE\Installed\OutlookTool')
GOTO :end
ELSE

IF EXIST (HKEY_LOCAL_MACHINE\SOFTWARE\Installed\OutlookTool)
GOTO :end
ELSE

IF EXIST HKEY_LOCAL_MACHINE\SOFTWARE\Installed\OutlookTool
GOTO :end
ELSE


But none of those worked.
so if someone has the answer to that plz tell me.