What is the windows command prompt command to copy files?
I need to move a file from location A to location B. Also if the folder for location B doesn't' exists I want to have it created.
I need this to be a command line so I can automate it.
The version of Windows is XP.
Best Answer
The command
xcopy
is what you are looking for. Example:The command above will copy source to destination, files and directories (including empty ones), will not stop on error, will copy hidden and system files, will overwrite read only files, will preserve attributes and ownership/ACL information, and will suppress the prompting for overwrite existing destination files.
For more info type
xcopy /?
and your command line.