code:
$returncode = EXIST ("%ALLUSERPROFILE%\Start Menu\Programs\Startup\ifagent.exe") | EXIST ("C:\Windows\start menu\programs\Startup\ifagent.exe")
If $returncode=0
RUN \\INTS1\INSTALL\IFAGENT\IFAGENT.EXE EXIT
ELSE
EXIT
ENDIF

would give you a return code of '1' if either of those files exist. If you use the '+' operator, you might end up with a return code of '2'. I know, just a minor thing, but it shows how to use the binary or operator '|' which would be appropriate for this type of problem.

One question though, why is there an executable in the START menu, nromally one puts only the links to executables into the folder. Thus, you would have to check for an .LNK file.

[ 10 July 2002, 15:42: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.