Output..
code:
test # 1:
=========
nope, doesn't exist, errorcode 0 (The operation completed successfully.)
test # 2:
=========
nope, doesn't exist, errorcode 0 (The operation completed successfully.)
***********************************************
test # 1:
=========
yupp, folder exists
test # 2:
=========
yupp, folder exists

Think of it this way...

The exist() command returns a 1 or 0. The @Error returns weather or not the command completed or not. So if the file is there or not you will get a 0 from @Error as long as the command completed.

Here try this code...
code:
BREAK ON

?EXIST("\\MANFP1NT\Users");this does exist
?@ERROR
?EXIST("\\MANFP1NT\User") ;this does not exist
?@ERROR

GET $_

You will see that @Error returns a 0 on both because the Exist() command completed successfully.

HTH
Rocco
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro