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,024 of 68,980   
   adam_l@poczta.onet.pl to All   
   Re: Transform string to the same number    
   24 Aug 17 04:10:30   
   
   W dniu środa, 23 sierpnia 2017 14:32:47 UTC+2 użytkownik John Gray napisał:   
   > For "underlining" purposes I want to transform a single word, replacing each   
   letter by an equals sign or perhaps a hyphen.   
   >    
      
   @echo off   
      
   set INPUT=Text to underline   
      
      
   set XX=%INPUT%   
   :loop   
   SET XX=%XX:~1%   
   SET UND=%UND%-   
      
   IF NOT "%XX%"=="" GOTO loop   
      
   echo %INPUT%   
   echo %UND%   
      
   --- 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