I have written a script that allows me to copy, cut, and paste files in certain directories via a browser. Everything works except for one problem I can't solve. I can't seem to think of a way to prevent someone from copying a folder and trying to paste it inside itself. I still want to allow someone to copy a folder into a folder of the same name as long as they are not the same exact folder. For example if I have c: empfilesasp and c: empasp, I should be able to take the folder c: empfilesasp and copy it into c: empasp because they are different folders that have a common name. Hopefully I am making sense. It may be something obvious I am missing, but any help is appreciated.