(system) C:\TEMP >%@if[%_dow eq Thu,echo have a nice weekend,echo day of week is: %_dow]
day of week is: Fri
(system) C:\TEMP >%@if[%_dow eq Fri,echo have a nice weekend,echo day of week is: %_dow]
have a nice weekend
Frank, I must have done something wrong (I'm half blind), but @If didn't work for me. So extending it a little bit: can you code the "true" and "false" clauses as a sequence of commands?
Thank you Steve; somehow I had the idea that IFF couldn't be used in an alias the way you are using it. I obviously should have tried it before making that assumption.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.