the command posted above does this.
when you make a batch file with:
Code:
@echo off
type blablabla >>test.txt
type blablabla >>test.txt
you will see two lines with blablabla in the "test.txt" file. If you want to append text to a file use ">>" If you want to create a new file (or replace a file) use ">" to pipe the text in.
If you want for example the directory listing in a file you can use
Code:
@echo off
dir >> test.txt
now the directory listing of the current directory will be appended to the file.
If you want to see the list of commands you can use in a batch file, type "help" in a dos box. If you want to have info about a specific command, type "help
".
I can recommend this book for shell scripting (be carefull, it's about windows NT shell scripting. This is not the same as shell scripts on Win9x) http://www.newriders.com/books/title...sbn=1578700477
[Edited by mosquito on 01-04-2001 at 03:38 AM]