How to edit a .property file in powershell
问题 I have a application.properties file in following format application.name=some thing application.version=4.1.0.1 application.list=abc.def, ghi.jkl Now my task is to append mno.pqr to application.list I am able to read it using $AppProps = convertfrom-stringdata (get-content .\application.properties -raw) I changed the Application.list value in $AppProps . How to save it back to original Application.properties file..? 回答1: You can try the following: $AppProps.GetEnumerator() | % { "$($_.Name)=