Find text (string) in text file(s)

If you want to find a certain text (string) in a text file or multiple text files, the quickest way to do so, is by using the select-string option. First you'd need to get a list of the files you want to search trough: $FileList = Get-ChildItem -Path "D:\temp\" or you can use it on … Continue reading Find text (string) in text file(s)

How simple some things can be – Powershell indent

In the past few years, I've been using tools to indent my code... Today by accident found out that in Powershell ISE, if you select multiple lines and press tab it'll indent all selected lines... and of course shift+tab will do the reverse. Amazing how simple some things can be without any tool... And how … Continue reading How simple some things can be – Powershell indent

Quick command to open explorer from the current directory in Powershell

Here is a quick command if you want to open Windows Explorer from the current directory in Powershell: ii . (note the space between the 'i' and the dot) ii is powershell's alias for invoke-item. Adding a dot to that command will open the current directory using the default explorer. Edit: If you'd like to … Continue reading Quick command to open explorer from the current directory in Powershell