Open g-topix opened 2 years ago
From robocopy /?
/CREATE :: CREATE directory tree and zero-length files only.
The /CREATE option is causing this.
here's a simplified command to do what you described:
robocopy "X:\NewBackup\DoInstall_Programs" "X:\NewBackup\DoInstall_ChoEazyCopyList" *.txt *.pdf *.rtf /E
simply replace the drive letter, I put X:
here as a placeholder.
/E
is telling robocopy to include every subfolders, even empty ones.
My attempt to copy a directory with subdirectories and .txt; .pdf and .rtf files and simultaneously ignore all larger files (.exe; .rar; .msi) over 5000 bytes works only partially. The directory structure is copied correctly, but the contents of the .txt; .pdf, and *.rtf files are not present. These copied files remain empty with 0 kb.
What am I doing wrong?
Name Microsoft Windows 7 Professional Version 6.1.7601, NET Framework 4.8
Applied parameters:
`*:\NewBackup\DoInstall_Programms\ChoEazyCopy\ChoEazyCopy v2.0.0.1>prompt $G
Log: *:\NewBackup\DoInstall__ChoEazyCopyList
In other words, I want to copy only the directory structure including the text, PDF and RTF files in it. All other file formats should not be copied. How can this be done?