Would this be accurate way to code if I wanted to copy file names.nsf to folder test, both on C: drive of local machine?

shell "%comspec% /c xcopy /i c:\names.nsf C:test"
if @error = 0
? "found"
else
? "not found"
endif