that trailing backslash or change it to:
xcopy C:\Temp\*.* G:\Temp\*.* /s/e/f/d/y
I use xcopy for backing up but the following bat file:
pause
xcopy C:\Temp\ G:\Temp\ /e/s/f/d/y
pause
gives me an 'invalid path' error.
Both the directories exist and there is one file in C:\Temp.
I would be grateful for any help here.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic