[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

 
原文地址:https://www.cnblogs.com/buhaiqing/p/4739411.html