Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Copying and inserting text from one file into another into a specific place within that text file

$
0
0

Hi All,

I am trying to copy the contents of a file and then paste this content into a specific location within another file. 

I can copy the contents no problem using get-content and then paste the content using the set-content (which i know is not correct as this is overwriting the file) i need to just paste it into the other file after the last <location/> tag.

However, i cannot find anywhere how best to do this?

 

Any help with this is greatly appreciated.

 

Cheers 

Grizzly


Viewing all articles
Browse latest Browse all 6937

Trending Articles