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,428 of 42,547   
   miroslawmorocho@gmail.com to All   
   Re: Append text to a text file ON THE SA   
   25 Feb 16 22:24:32   
   
   11d16cad   
   El sábado, 31 de marzo de 2012, 12:21:05 (UTC-5), Tom Lavedas  escribió:   
   > On Thursday, March 29, 2012 12:26:40 AM UTC-4, munchk...@gmail.com wrote:   
   > > Nevermind, I have found the answer after MUCH searching!   
   > >    
   > > Use the following code to write text to a text file withOUT a new line   
   character feed:   
   > >    
   > > cmd /c echo|set /p="TextHere">>C:\Test.txt   
   > >    
   > > Correct me if I'm wrong, but from my understanding, the "set" pipe is used   
   to pass the exact string variable ("TextHere") to the echo function meaning   
   that the new line character is not appended.   
   >    
   > Yes, that's basically true, but this should work and is a bit simpler ...   
   >    
   >   set /p="TextHere" >C:\Test.txt   
   >    
   > BTW the quotes are only required if you need to send problem characters like   
   the > or < into the file. The explicit invocation oc the command processor is   
   not required and the ECHO pipe is replaced by redirecting the NUL device into   
   the statement.   
   > _____________________   
   > Tom Lavedas   
      
   Thanks man, I am needing this right now!   
      
   --- 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