home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,690 of 42,547   
   Herbert Kleebauer to pyotr filipivich   
   Re: truncating filenames in a batchfile?   
   10 Jan 19 21:23:22   
   
   From: klee@unibwm.de   
      
   On 10.01.2019 17:40, pyotr filipivich wrote:   
   >   
   > This is my first step in researching the problem.   
   >   
   > what I want to do is 'reduce'   
   > 	01_06_19_5b54d5ba3704f6e427c145ed4c9cb795.jpg   
   > to   
   > 	01_06_19.jpg   
   >   
   > So, is there a "Left" command which will take just the leftmost   
   > characters?  Or some other method of doing so?   
      
   set x=01_06_19_5b54d5ba3704f6e427c145ed4c9cb795.jpg   
   set y=%x:~,8%   
   echo %x%   
   echo %y%   
      
      
   Use "set /?" for more information.   
      
   --- 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