home bbs files messages ]

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

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,254 of 68,980   
   Tom Del Rosso to Guy   
   Re: concatenate   
   02 Jul 18 11:47:00   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   Guy wrote:   
   > Tom Del Rosso wrote:   
   >   
   >   
   >> None of the syntaxes google finds actually work.   
   >>   
   >> I want to add a text file to the end of a log file.  And it has to   
   >> work if the log file doesn't exist yet.   
   >>   
   >   
   >   
   > Does not this work?   
   >   
   >  >>logfile type textfile   
      
   Yeah that works of course, but redirection can be a problem in unusual   
   cases.  The file name contains a number that is sort of an index, and to   
   parse the name you need %%name%%a%% which has to be executed with CALL.   
   Redirection doesn't work on the CALL line, so it has to be a separate   
   subroutine, which allows the TYPE >>logfile syntax, but a program starts   
   to get cluttered with one line routines.   
      
   This used to be done with COPY name + ,, or some craziness that had   
   multiple commas, and no reference had any explanation of the number of   
   commas.  Nothing in print back then about the COPY command mentioned   
   commas at all.  Command references still don't mention it, but does that   
   mean the syntax no longer works?  It worked at one time when it wasn't   
   documented.   
      
   --- 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