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,448 of 42,547   
   Harlan Grove to All   
   Re: How to I place the contents of a fil   
   06 May 16 16:12:00   
   
   From: hrlngrv@gmail.com   
      
   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.   
      
   --- 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