I would like to have a simple .bat file at so that when I double click on the batch file, it opens a new instance of Explorer at C:\Temp\Downloads\YYYYMMDD\ where YYYYMMDD is todays date.
I would think the Old Skool .bat file is the best way to go, but I can't get the date variable to feed through to the Start Explorer command. I dont think I can use PowerShell as the .ps1 is does not run when you double click on the program hence why I think the .bat would work better?
Many thanks, Bertie
P.s. I have the following PS1 Script that I can call from a .bat using PowerShell .\MyPowershell.PS1
$TodaysDate = Get-Date -format "yyyyMMdd"
$PathTarget = 'W:\Counterparty1\Statements\'
$LaunchFolder = $PathTarget + $TodaysDate
Explorer $LaunchFolder