Using Robocopy to exclude a file extension from the root directory -
i have directory want copy directory using robocopy.exe.
my plan exclude few files root of source directory. in fact, i'd exclude .html files root of directory.
the trick i'm using /e causing subfolders processed too.
therefore, current outcome of operation if use:
/e /xf "*.html"
i'm going exclude html files site-wide.
is there way can keep copying sub-folders, use xf exclude .html files root?
something like:
/e /xf "c:\releases\website_source\*.html"
my solution indecent easy understand. perform task 2 line batch file. robocopy root folder (but not subdirectories) - including .html files. next line robocopy including subs (excluding *.html)
Comments
Post a Comment