Skip to content
  • Home
  • About

iancarpenter.dev

Sharing what I learn

Category: PowerShell

Written by IanAugust 8, 2020August 10, 2020

Rename all files in a folder to lowercase using PowerShell

Recently I needed to perform some housekeeping on a Windows folder. Part of this work required that the filenames be in lowercase. I know, in a usually case insensitive Operating System but bear with me. A search found this answer on Stackoverflow. dir <<YOUR FOLDER HERE>> -r | % { if ($_.Name -cne $_.Name.ToLower()) { […]

Written by IanSeptember 12, 2019September 12, 2019

Using Powershell to merge multiple csv files

The problem I needed to produce a monthly sales report from a number of csv files. In effect merging 30 files into one file which then could be opened in Excel. The existing method of opening each csv file, selecting all, copying and pasting into a new document was labour intensive, error prone and boring. […]

Create a website or blog at WordPress.com
  • Follow Following
    • iancarpenter.dev
    • Already have a WordPress.com account? Log in now.
    • iancarpenter.dev
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar