PowerShell, Scripting
comments 3

ConvertTo-PowerShell: PowerShell versus “other” scripting examples – Part 4: Renaming files

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 to rename a bunch of files. So, let us jump in.



This is it. I am sure you must be seeing the benefits of “converting” to PowerShell-ism by now.

Filed under: PowerShell, Scripting


Ravikanth is a principal engineer and the lead architect for Microsoft and VMware virtualized and hybrid cloud solutions within the Infrastructure Solutions Group at Dell EMC. He is a multi-year recipient of Microsoft Most Valuable Professional (MVP) award in Windows PowerShell (CDM) and Microsoft Azure. Ravikanth is the author of Windows PowerShell Desired State Configuration Revealed (Apress) and leads Bangalore PowerShell and Bangalore IT Pro user groups. He can be seen speaking regularly at local user group events and conferences in India and abroad.