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?
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?
*.* 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.Code:copy "C:\folder A\folder B\my folder\*.*" c:\myfolder
xcopy "c:\folder a\folder b\my folder\*.*" "c:\*.*" /s /e /c
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
The /h is just in case there are hidden files. The /i creates a destination folder if there are muliple source files.Code:xcopy e:\source_folder f:\destination_folder /e /i /h
I tried this today and it works well.xcopy e:\source_folder f:\destination_folder /e /i /h
There are currently 2 users browsing this thread. (0 members and 2 guests)