I know it is something sort of like this 🙂
I need $Report to always have current date in the file name
I also tried
Concatenating paths and variables is more complicated than strings 🙂
Thank you for your help,
Nvm, I finally figured out how to search for what I needed.
I found this way:
$Report = "C:\temp\report-$(get-date -f yyyy-MM-dd).html"
Thank you, everyone...
Hi tommls, yes a subexpression is the way to go. A subexpression is an expression that's part of a larger expression. So by doing $("Something") will achieve what you need.
You must be logged in to reply to this topic.