Creating a Folder Named After a Date
I like to create folders on the fly for logging purposes, as well as for keeping track of re-occurring actions, like scanning for disk usage on a given date. The following PowerShell command is useful for creating a folder with a name in the format YYYYMMDD. $folderName = “folder1_” + (Get-Date -uFormat “%Y%m%d”) This command makes … Continue reading Creating a Folder Named After a Date