Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Search and Replace text in file using PowerShell

$
0
0

I want to schedule a script in PowerShell to search a directory for an XML file for a particular text string and replace it with a different text string and then save the file with the same name, the name of the file will change each time the script is run on a daily basis. There will only be one XML file in the location when the scheduled script is run.

I have never used PowerShell but am familiar with batch file commands, can anyone please help!!


KevinS


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>