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 40,894 of 42,547    |
|    Herbert Kleebauer to ehabaziz2001@gmail.com    |
|    Re: processing same files with same pref    |
|    14 Jan 14 14:11:10    |
      From: klee@unibwm.de              On 14.01.2014 13:45, ehabaziz2001@gmail.com wrote:              > The position 6 is not fixed xxx could be xxxx or xx , but the separator (_)       after the name prefix is fixed.       >              whatever_xxx_part1.txt              set n=%~n1              This set n to the file name only: n=whatever_xxx_part1              set n=%n:~0,-6%              This removes the last 6 characters (_part1): n=whatever_xxx              --- 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