For example, if I have a d:\temp\files directory that I want to copy to d:\temp\files2, I can do so by doing:
copy-item d:\temp\files d:\temp\files2 –recurse –force
However, run that same line again after changing a file or two and though it appears to copy, it won’t actually copy the files. In order for this to happen, you must include a * at the end of the path:
copy-item d:\temp\files\* d:\temp\files2 –recurse –force
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.