Powershell with filename with timestamp extension
I have a path in a string, “C:\temp\mybackup.zip” I would like insert a timestamp in that script, for example, “C:\temp\mybackup 2009-12-23.zip” Is there an easy way to do this in PowerShell?
Source: TimeStamp on file name using PowerShell – Stack Overflow