i regularly set my pc to shutdown on a timer using "shutdown.exe /t [time in seconds] /s"
which leads to me doing late night mental arithmetic...
can i somehow embed math into the shutdown.exe call, eg some variation of "shutdown.exe /t 120*60 /s"?
i know i can do "set /a 120*60" first to output the number and then use it in the shutdown call, but then i could also work it out in my head fairly quickly - i'm interested in the more general question of using math in cmd calls...
thanks!
p.s i did try to search google and SO for answers but the search terms i can think of are too general - "use math in cmd command" yields answers about how to use cmd to solve math problems rather than to use math in the middle of a, umm, i don't even know the term - 'function call'?