[PowerShell]get data from Ini File

$filedata = @'
app.name=Test App
app.version=1.2
'@

$filedata | set-content appdata.txt

$AppProps = convertfrom-stringdata (get-content ./appdata.txt -Raw)
$AppProps

 

 

posted @ 2015-08-18 14:55  卜海清  阅读(294)  评论(0)    收藏  举报