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,429 of 42,547    |
|    larry.lowe@gmail.com to All    |
|    Re: Remove leading & trailing spaces fro    |
|    08 Apr 16 11:11:25    |
      Konrad's solution of using a subroutine worked great for what i needed. I had       to trim trailing space and save everything to a file, so i added a few other       lines:              :Sub1       SET MYVAR=%*       SET MYVAR=%MYVAR:~0,-1%       ECHO "%MYVAR%" >> output2.txt       EXIT /b 0              --- 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