Good Morning from germany,
I'm actually working working about 10 hours on the same problem:
I'm generating a Textfile with Filepaths, that I want to copy later on in my script. That doesn't make any problems.
Example.txt:
C:\Test1\Test2\Test3\file1.txt
C:\Test1\Test2\Test3\file2.txt
C:\Test1\Test2\Test3\file3.txt
The point now is, that I want to replace the ending of the path (file1.txt, file2.txt, etc.). I tried just simply with replacing "*.txt, but that doesn't work for me. I tried also Split String, but that doens't work for me either...
May someone give me clue, what method I may user for this. I'm working for just around a week with powershell, so please be calm, if I don't get anything immediately. :-)
Thanks!