Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

Robocopy Exclude specific file pattern in a specific folder

$
0
0

We are trying to build a script to mirror the user documents to a personal networkfolder, but it happens that a scanner sends files in the format "doc*.pdf" to that folder. Is it possible to exclude just these files in that folder? Because if the user copies them in his document folder they should be mirrored, but if he didn't allrdy copied  we dont want then to be deleted.

What we tried so far was:

robocopy "C:\Users\username\Documents" "\\server\users\username" /MIR /XF \\server\users\username\doc*.pdf

But it did not work, robocopy does not seem to accept the argument. Anyway he accepts

robocopy "C:\Users\username\Documents" "\\server\users\username" /MIR /XF \\server\users\username\doc.pdf
But this does not help us, as we need a pattern to be ignored not just a specific filename.


Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>