In today’s post, I will show an example script to retrieve a 20 largest files on C: drive. As usual, we will first look at the VbScript example and then see a PowerShell “one-liner”.
Continuing this series of posts on PowerShell-ism, today, I will show a VBScript example and then convert it to a PowerShell one-liner. So, this script was my response to a question on the scripting guys forum. This script reads a text file containing tab delimited information and then uses the lines in the text file [...]
Yesterday, I mentioned that PowerShell can take care of many important aspects like formatting output, etc and let you focus on the core aspects of what you want to achieve using a PowerShell script. In today’s post I will show an example to demonstrate this.
Please take a look at part 1 to understand why I started this series of articles. In this post, I will show another example from the scripting guys forum. Again, this is a PowerShell one-liner to do the job of 30 lines of VBScript. What this script does is real simple. It just creates a folder [...]
On the scripting guys forum and various other places, I still see various people asking for VBScript examples or DOS batch file examples for achieving various things on Windows OS. I — almost every time (unintentionally) – provided a PowerShell example even when the person’s preference was VBScript or DOS batch. I see many people shying away [...]