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,449 of 42,547    |
|    T to Harlan Grove    |
|    Re: How to I place the contents of a fil    |
|    06 May 16 19:40:44    |
      From: T@invalid.invalid              On 05/06/2016 04:12 PM, Harlan Grove wrote:       > T wrote:       > ...       >> I found this in my notes. Is there a less complicated method?       > ...       >> For /f "tokens=* delims= " %%a in (out.txt) do set myvar=%%a       >> echo %myvar%       >       > The only other way to do this involves using an outside command to write       >       > set myvar=       >       > to a file without a newline at the end, then append out.txt to that file,       then call that file as a batch file. If the other file were subproc.bat, the       command to run it would be       >       > call subproc.bat       >       > Without call, the first batch file would effectively end and subproc.bat       replace it.       >              Thank you!              --- 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