i need to output Get-ChildItem cmdlet into file, which name contains current date. this is what is tried:
Get-Date -OutVariable date
Get-ChildItem > $date.txt
powershell doesn't print any error messsages, but there's no file created.
i need to do some equivalent to the following line in windows cmd
dir > %date%.txt
thanks in advance