Use the –LiteralPath parameter available to suppress all pattern matching behavior. But Rename-Item cmdlet does not have the –LiteralPath parameter. A workaround is to use Move-Item cmdlet to rename files.
See Windows PowerShell in Action, page 309 – 312, and http://sandbox.manning.com/thread.jspa?messageID=62599
No comments:
Post a Comment