I have a txt file with the full path for .jpg files, I need to xcopy the whole folders including everything inside using xcopy using batch file
Windows – xcopy all folders and subfolders from txt(with paths , and spaces )
batch-filecmdwindowsxcopy
Related Question
- Windows batch files: .bat vs .cmd
- Windows – How to get current date/time on the Windows command line in a suitable format for usage in a file/folder name
- Windows shell command to get the full path to the current directory
- Visual-studio – delete all bin and obj folders to force all projects to rebuild everything
- Windows – How to verify if a file exists in a batch file
- What does %~dp0 mean, and how does it work
- How to “comment-out” (add comment) in a batch/cmd
- Windows – Filename too long in Git for Windows
Best Solution
This is an old question, but I had the same question and neither of the above answers quite did it for me. I had to add
/s
:That copys all files, subfolders, and files in subfolders. More (and helpful) documentation available here:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy