set "$today=(Get-Date).ToString('MM_dd_yy')" echo "%today%"
I have created the date.bat file but it's not printing the date. Please help me to fix this issue. Thanks in advance
Output -
-
+ CategoryInfo : NotSpecified: ('$today' is not...ternal command,:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
operable program or batch file.
C:\Desktop>echo "$today" "$today"