/\\/\\o\\/\\/ [MVP]
2006-12-27 21:45:52 UTC
works for me (and i'm used to working like this now in PoSH ),
dir -recurse c:\powershell *.ps1 | copy -destination c:\test -whatif
still should work IMHO (at least second example (using provider function)
but do only one level :
copy c:\powershell\* c:\test -include *.ps1 -rec -whatif
copy c:\powershell\* c:\test -filter *.ps1 -rec -whatif
guess directories are excluded also then (makes some sence in object terms
(directory being just another object, but the filter is provide specific )
still as -filter is provider specific should be able to this while in the
filesystem provider i would think.
thoughts ?
greetings /\/\o\/\/
dir -recurse c:\powershell *.ps1 | copy -destination c:\test -whatif
still should work IMHO (at least second example (using provider function)
but do only one level :
copy c:\powershell\* c:\test -include *.ps1 -rec -whatif
copy c:\powershell\* c:\test -filter *.ps1 -rec -whatif
guess directories are excluded also then (makes some sence in object terms
(directory being just another object, but the filter is provide specific )
still as -filter is provider specific should be able to this while in the
filesystem provider i would think.
thoughts ?
greetings /\/\o\/\/
Copy-Item c:\folder\*.txt c:\folder2 -Recurse
That's just one of many variations of this. None worked. Using the
wildcard
is important. I _can_ get a recursive copy to work without wildcards. It
should also preserve the folder structure.
That's just one of many variations of this. None worked. Using the
wildcard
is important. I _can_ get a recursive copy to work without wildcards. It
should also preserve the folder structure.