Hi Sir, Please: I have to replace the string "SkyDrive" ou similaire to "OneDrive" in all scripte fils... I don't get any result ... Many thanks for your help, My beste Regards Arnold cls $includes = "C:\MMC\*.ps1" $find = "SkyDrive" # or similairy $replace = "OneDrive" function Replace-String($find, $replace, $includes) { get-childitem $includes | select-string $find -list |% { (get-content $_.LiteralPath) |% { $_ -replace $find, $replace } | set-content $_.LiteralPath } } Replace-String
↧
replace string in multiple fils
↧