Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alter a character in all files in a directory and sub folders

Status
Not open for further replies.

Trob70

Programmer
Sep 25, 2012
89
0
6
AU
I have a large number of files in a root folder with sub directories eg f:\fixxml\ (this contains sub folders with .xml files as well)
I need to alter a character in the files eg ’ to '
Have never used powershell before..!!!

Did try the following with no success
in cmd
F:\fixxml
powershell
then this command
get-childItem *.xml | rename-item -newname { $_.name -replace '’','''} !!! does nothing !!!!

Would really appreciate a command line that will do this for me

Regards Robert


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top