Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 68,889 of 68,980    |
|    Herbert Kleebauer to All    |
|    Re: Missing Operand    |
|    18 Sep 25 18:53:06    |
      From: klee@unibwm.de              On 9/18/2025 6:35 PM, Zaidy036 wrote:       > I fell stupid but for the life of me I cannot see an error but Win 11       > batch reports missing operand.       >       > SET T-Hour=%TIME:~0,2%       > IF %T-Hour% LSS 10 SET T-Hour=%T-Hour:0=%       > SET T-Min=%TIME:~3,2%       > IF %T-Min% LSS 10 SET T-Min=%T-Min:0=%       > SET /A T-Day=%T-Min% + (%T-Hour% * 60) <<< missing operand ????              I suppose, "T-Day" is not used as a variable name, but as       "T minus Day" in the "set /A" command.       Just remove the "-" from your names.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca