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

Get a copy of a value from a file

$
0
0

Hi All , 

I'm trying to use select string to get a copy of a line from ini file.....my problem is every time i get an output it start with the word "Line" and then it list the value i need

I need to only get the value "Path=xxxx" in the output without Line and without the path

I use this command

select-string -path C:\temp\Test.ini -Pattern "Path=" | Select Line


Thoughts?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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