Powershell: File copy/move with filename regular expressions?
Posted
by Ian Boyd
on Super User
See other posts from Super User
or by Ian Boyd
Published on 2010-06-07T14:21:39Z
Indexed on
2010/06/07
14:23 UTC
Read the original article
Hit count: 424
i basically want to run:
C:\>xcopy [0-9]{13}\.(gif|jpg|png) s:\TargetFolder /s
i know xcopy
doesn't support regular-expression filename searches.
i am told that Powershell can do such a thing, although not given any syntax.
Can anyone give the syntax of the above xcopy
, but in PowerShell format?
© Super User or respective owner