Kyle Posted January 21, 2007 Posted January 21, 2007 If i have a folder path of C:\folder A\folder B\my folder what line could i use in a CMD file to copy 'My Folder' and all its subfolders and files to the root of C:\ ? COuld someone give me ideas?
ChrisH Posted January 21, 2007 Posted January 21, 2007 copy "C:\folder A\folder B\my folder\*.*" c:\myfolder *.* denotes everything or you could say all word docs like *.doc . * is used as a wild card. A more robust copy command is Robocopy which you can download.
meastaugh1 Posted January 21, 2007 Posted January 21, 2007 xcopy "c:\folder a\folder b\my folder\*.*" "c:\*.*" /s /e /c
NetworkGeezer Posted January 22, 2007 Posted January 22, 2007 The /s is redundant when there is already an /e. Also in that example unless you specify a destination folder the files will be copied to the root of the c: drive. Try something like this xcopy e:\source_folder f:\destination_folder /e /i /h The /h is just in case there are hidden files. The /i creates a destination folder if there are muliple source files.
tosca925 Posted January 22, 2007 Posted January 22, 2007 xcopy e:\source_folder f:\destination_folder /e /i /h I tried this today and it works well.
Goku Posted January 29, 2013 Posted January 29, 2013 Great this helped Great! xcopy DIR FOLDER NAME F: (FOLDER #2 name)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now