home bbs files messages ]

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,891 of 68,980   
   R.Wieser to All   
   Re: Missing Operand   
   18 Sep 25 18:43:59   
   
   From: address@is.invalid   
      
   Zaidy,   
      
   >I fell stupid but for the life of me I cannot see an error but Win 11 batch   
   >reports missing operand.   
      
   > SET /A T-Day=%T-Min% + (%T-Hour% * 60)    <<< missing operand ????   
      
   :-)  the cause is rather simple : the "-" in the first, target variables   
   name is, by the expression evaluator, seen as a minus sign.   
      
   Regards,   
   Rudy Wieser   
      
   --- 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