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 67,271 of 68,980   
   Petr Laznovsky to All   
   IF numerical comparsion   
   13 Aug 18 10:59:33   
   
   From: nobody@nowhere.com   
      
   Following batch print DEVTYPE0 and DEVTYPE2 as its output, but expected if   
   DEVTYPE0 and DEVTYPE1. Am   
   I miss something? I am on w2k3.   
      
   L.   
      
      
   @echo off   
   set "devtype=2"   
      
   if not "%devtype%"=="" (   
          if devtype GEQ 1 (   
                echo DEVTYPE0 "%devtype%"   
                if devtype LSS 20 (   
                      echo DEVTYPE1 "%devtype%"   
                      ) else (   
                      echo DEVTYPE2 "%devtype%"   
                      )   
                )   
          )   
      
   --- 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