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,373 of 68,980   
   Herbert Kleebauer to probyn@berkeley.edu   
   Re: Copy all files into a format I can u   
   22 Feb 19 09:09:07   
   
   From: klee@unibwm.de   
      
   On 22.02.2019 02:27, probyn@berkeley.edu wrote:   
      
   >   for %%C in (   
   > 09.         a.A b.B c.C d.D e.E f.F g.G h.H i.I j.J k.K l.L m.M   
   > 10.         n.N o.O p.P q.Q r.R s.S t.T u.U v.V w.W x.X y.Y z.Z   
   > 11.      ) do (   
      
   Nice idea. This way the uppercase conversion can be done in a   
   single line:   
      
      
   @echo off   
   set text=Hello World 123   
   echo %text%   
      
   for %%i in (a.A b.B c.C d.D e.E f.F g.G h.H i.I j.J k.K l.L m.M   
                n.N o.O p.P q.Q r.R s.S t.T u.U v.V w.W x.X y.Y z.Z   
               ) do set j=%%~xi&&call call set text=%%%%text:%%~ni=%%j:~-1%%%%%%   
      
   echo %text%   
      
   --- 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