Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Replacing document content if the text equal to a variable

$
0
0

Hi everyone

I have a sample text file that I use as a template an was wandering if I could already put the name of a variable in the text so it would change when I use a command such as get-content in my script.

As an exemple, the sample txt file would have the text as following :

Hi $Name, would you be free...

And when the script would read the text it would replace the $Name but the equivalent variable in the script?

I'm really out of idea for this. Thank for any help I can get.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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