:: GTD Wannabe :: Command to append text to a file :: 22 Jan 06 :: In response to: http://groups.google.com/group/43Folders/msg/68b3cc8169188eb4 :: :: First param is name of the file, including extension :: Second param is the text to be appended to the file :: :: Assumes that this command will be run in the same :: directory as your target text files :: Filename is first param set filename=%1% :: Remove the quotation marks from the second parameter set text=%2% set textclean=%text:~1,-1% :: Write the current date/time and second parameter ::text to the appropriate text file :: These two lines put the date/time and text one one line. Remove the :: if that's what you want. :: %date% %time% echo %textclean% >> %filename% ::echo. >> %filename% :: These lines put the date on a line, time on a line, :: and text on a line. Add in :: if you don't :: want it done this way. See block immediately above. :: echo %date% >> %filename% :: echo %time% >> %filename% :: echo %textclean% >> %filename% :: echo. >> %filename%