Hello Powershell Experts,
I have the following code that returns a date of 20151005:
$ArchiveDate = Get-Date -Format yyyyMMdd
I want to create a file named: 20151005_Log.txt. I think I would use something like the following, but it is not working:
New-Item -Name '"$ArchiveDate"_log.txt' -Path "$ArchiveFilePath\$ArchiveDate" -ItemType file
What am I doing wrong here?