Would not recommend that code for Folder checking.

Also, unless the user has Admin rights they should not be able to copy that file into the system32 folder.

For a folder I'd use something like this. Though he did ask about a file.


If GetFileAttr('foldername') & 16