Saved Bookmarks
| 1. |
Solve : Appending text to a file? |
|
Answer» :question :question Use two of > . Example: Code: [Select]echo Backup completed at %time:~0,8% >>"C:\test.txt" One ">" MEANS redirect output the following file, and if it already exists then OVERWRITE it. Two ">", as in ">>" means redirect output to the following file and if it already exists, append to it. Additionally, here is something to try: With > or >> , it is implicit that if the file to write to does not already exist, then create it. Thus, your "copy nul.... " line is not necessary. I hope this helps. |
|