How do I copy a folder in command prompt?

Status
Not open for further replies.

Pooter22

Posts: 6   +0
I need to copy a folder from my usb harddrive to the program files folder on the c drive. I need the entire folder not just a file. Is this possible, if so, what is the correct command to do this?

Thanks
 
XCopy E:\FolderName %ProgramFiles%

Assuming E: is your USB Drive letter
And substituting FolderName for your folder name
 
%windir%\System32\XCopy E:\FolderName %ProgramFiles%

or try:

Copy E:\FolderName %ProgramFiles%
 
I use a little .bat file to periodically copy all my picture files from one HD to another. Create a folder on the other drive, I used 'Backup';

@ echo off

doskey

cd\

dir /w

pause

cd\Documents and Settings\CCT\My Documents\My Pictures\

dir /w

pause

copy *.* d:\Backup

verify

pause

You don't need the 'pause' entries, I just like them - :)
 
Status
Not open for further replies.
Back