![]() So in this case, we can translate it into a hash table by doing the following: If we take a look at the keys, we notice they look a lot like the hash tables that Ed has blogged about. My Windows 7 computer has a system.ini file that looks like the following: Let’s fix this!įirst, we need to take a look at what an INI file looks like. Well, there is no point in whining about it. Even I like to save some settings from my GUI Windows PowerShell scripts (last position, last size, and so on) into INI files. A lot of programs and tools use an INI file to save their settings. After a bit of playing around and writing my first scripts, I noticed Windows PowerShell has many cmdlets to read and write different types of files, such as CSV, XML, HTML and plain text. When I first started working with Windows PowerShell, I was amazed by all the built-in cmdlets and what you can do with them. With that as background, take it away, Oliver. In addition to this, Oliver has the Microsoft Community Contributor award. Oliver has written a guest blog post before, and he was a judge for the 2011 Scripting Games. Today, we have another guest blog post, this one written by Oliver Lipkau. Summary: Guest Blogger Oliver Lipkau shares two Windows PowerShell functions to simplify reading and writing to INI files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |