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,805 of 68,980   
   Kerr-Mudd, John to Tom Del Rosso   
   Re: Batch file for compressing code   
   23 Oct 21 09:41:57   
   
   From: admin@127.0.0.1   
      
   On Fri, 22 Oct 2021 22:16:48 -0400   
   "Tom Del Rosso"  wrote:   
      
   > Kenny McCormack wrote:   
   > > In article ,   
   > > Tom Del Rosso  wrote:   
   > >> Harry Potter wrote:   
   > >>> Were these batch files useful to anybody?  I am an egotist and   
   > >>> desire feedback.  :)   
   > >>   
   > >> :-)   
   > >>   
   > >> OK.  Complete batch files are probably useful only to their   
   > >> creator, but subroutines and techniques are adaptable.   
   > >   
   > > This is an excellent observation.  I have long said (in the   
   > > Unix/Linux context, but the principle is the same): Nobody wants to   
   > > run other people's shell scripts.   
   > >   
   > > As you say, the ideas and techniques are sharable, but whole scripts   
   > > are rarely going to be useful (and, more importantly, safe) for   
   > > other people to use.   
   >    
   > I routinely use a few that would be dangerous for anyone who didn't    
   > understand them, but I've written some that would be useful to a few    
   > others.   
   >    
   > Here is a demo of a technique I haven't seen elsewhere.   
   >    
   > @echo off   
   > rem  ******************************************************   
   > rem  You can have 88 consecutive "FOR variables" from   
   > rem  character 38 [&] to character 125 [}] inclusive,   
   > rem  or 93 if you start at character 33 [!] and don't   
   > rem  use the unusable character 37 [%].   
   > rem   
      
   [...]   
      
   >    
   > rem  generate a sting of numbers to be used by other FOR commands   
      
   'string'!   
      
   > set "text="   
      
   [...]   
      
   >         echo Character 125 [}] Token 93 [%%}] works up to here   
   >         echo Character 126 [~] Token 94 [%%~] doesn't work from here    
   > forward   
   >         echo Character 127 [¦] Token 95 [%%¦]   
   >         echo Character 128 [Ç] Token 96 [%%Ç]   
   >         echo Character 129 [ü] Token 97 [%%ü]   
   >         echo Character 130 [é] Token 98 [%%é]   
      
   Might  156 [£] {UKP} work?   
      
   []   
      
      
   --    
   Bah, and indeed Humbug.   
      
   --- 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