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
Post a Comment