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,290 of 68,980   
   yelw0rc@gmx.net to All   
   String (be)schneiden   
   14 Sep 18 06:37:29   
   
   Hallo,   
      
   ich möchte gerne einen String um X Zeichen schneiden.   
      
   Ich habe es mal so versucht.   
      
   set /a New_StrLength=%StrLength%-25 // New_StrLength=47   
   echo.%String:~0,%New_StrLength% <-- funktioniert so nicht   
   echo.%String:~0,%New_StrLength%% <-- auch so nicht   
      
   echo.%String:~0,47% <-- bringt zwar das gewünschte Ergebnis, soll aber   
                           variabel sein   
      
   Wie macht man es richtig?   
      
   Vielen Dank im Voraus.   
      
   Gruß   
   Christian   
      
   --- 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