Hi Expert,<\/p>\n
I am trying to find and replace from folders and subfolders files etc .presently i can do it to one folder only<\/p>\n
Get-ChildItem D:\\Check*.config | Foreach {(Get-Content $) -replace ‘22.10.’,‘SQL1’| Set-Content $<\/em>}<\/p>\n how i can i do it for multiple subfolders.i.e<\/p>\n afolder-afolder,bfolder–cfolder so on<\/p>\n Regards<\/p>\n Shree<\/p>","upvoteCount":5,"answerCount":4,"datePublished":"2021-03-09T22:45:32.000Z","author":{"@type":"Person","name":"rupeshshelar","url":"https://community.spiceworks.com/u/rupeshshelar"},"suggestedAnswer":[{"@type":"Answer","text":" Hi Expert,<\/p>\n I am trying to find and replace from folders and subfolders files etc .presently i can do it to one folder only<\/p>\n Get-ChildItem D:\\Check*.config | Foreach {(Get-Content $) -replace ‘22.10.’,‘SQL1’| Set-Content $<\/em>}<\/p>\n how i can i do it for multiple subfolders.i.e<\/p>\n afolder-afolder,bfolder–cfolder so on<\/p>\n Regards<\/p>\n Shree<\/p>","upvoteCount":5,"datePublished":"2021-03-09T22:45:32.000Z","url":"https://community.spiceworks.com/t/find-and-replace-multiple-folders/793211/1","author":{"@type":"Person","name":"rupeshshelar","url":"https://community.spiceworks.com/u/rupeshshelar"}},{"@type":"Answer","text":" If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n