I'd like to change the date of all files in a folder, recursively.
A PowerShell script I've found on the Internet to do this is:
$files = Get-ChildItem -force -recurse | Where-Object {! $_.PSIsContainer}
foreach($object in $files)
{
$object.CreationTime=("10 November 2016 12:00:00")
}
My question is: Where would one place the folder to be acted upon?
The script above operates on the 'current' folder. But I'd like to act upon a different folder from 'current.'
Example: C:\Files\*.*
If anyone knows of another 'command line' (i.e., batch file) way of doing the job, please share.
Thanks!
Nicholas Kormanik