i.e.
xcopy g:\*.* f:\ /h /i /c /e /r /y
will copy the g drive to the f drive including all hidden files, every subdirectory, ignoring errors and not prompting the user.