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
from [SOURCE] to [DESTINATION]
--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.
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
Jonas
I put the attributes at the end and the files still have not been sent to the other folder.
Ohhhh, my mistake.. Windows Vista doesn't recognize xcopy, use robocopy instead, that will work.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |