How can I parse and get values from this INI file using Powershell -


my ini (config.ini) file looks below

#this comment [folder] c:\temp c:\dir1 c:\dir2 

how can content of [folder] using powershell?

i need folder path in array

the example i've seen name value pairs

using example config.ini:

[system.collections.arraylist]$a = gc .\config.ini [string[]]$b=$a.getrange( $a.indexof("[folder]")+1, ( $a.count - ($a.indexof("[folder]")+1))) $b c:\temp c:\dir1 c:\dir2 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -