Click here for important information about

Batch file wont send copied files to folder

December 26, 2011 at 21:29:06
Specs: Windows Vista
I'm trying to write a batch file that copies files from one folder and sends them to another folder. I can get it to copy but it doesnt send the files at all. I need the batch file to perform the following: Prompt user for a [SOURCE] path and a [DESTINATION] path
Once paths are entered by the user, the application will copy all files/folders
--Must copy folder structure
--Must copy attributes of files
--Must copy hidden files and directories
--Must not require any user input beyond source and destination paths
--Must use a system of variables to contain the paths
--Must log copy process
So far i have xcopy /E/L/H//K/O "C:\source"C:\Destination
any answers to this question would be greatly appreciated.

See More: Batch file wont send copied files to folder

December 27, 2011 at 14:43:36
Your code is correct, but all the attributes need to go at the end of your code.. so for example:

xcopy "C:\Documents and Settings\User\My Documents" C:\Documents and Settings\User /E /L, etc, etc


Report •

December 27, 2011 at 19:50:21
I put the attributes at the end and the files still have not been sent to the other folder.

Report •

December 28, 2011 at 12:41:29
Ohhhh, my mistake.. Windows Vista doesn't recognize xcopy, use robocopy instead, that will work.

Report •
Related Solutions

Ask Question