xcopy f:\*.* p:\gav\backups\fdrive /e/h/k/y/c/r/o/i/EXCLUDE:\rack\+\archive\

Could you tell me what's wrong with this please?

It's not working for me.

I'm trying to copy all files under f:\ apart from the rack and archive folders and all files within.

I don't have a gap between the * and the p on the command line, it's just the way it's posted here.

Thanks