As Les says, you need to read up some more on what the script is actually doing. The real reason I think your first example is not working is that by default the VPHOME is not a hidden share.


;Sets a variable named $ROCPATH and pre-fills it with \\ROC\VPHOME$\Groups\
$ROCPATH="\\ROC\VPHOME$\Groups\"
;If Exist will physically check if that location exists
;The manual says "files" however if you only specify a folder it will check that too
If EXIST ($ROCPATH)
;Does what you tell it to do if the location exists
do stuff
;If the location does not exist it does something else
else do other stuff
;ends further execution of this IF block
endif