0

Hello,

I recently learned a new batch command and I was wondering if I could make a batch file from at root batch file...
Ex:

echo pause>\test.bat

This code makes a batch file that has the command pause.

Now would I make a multi-line batch file using this code?
Ex: I want the root file to make a batch file that completes a C:\ tree and than changes color (tree, color 0a)?

-Thanks

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by patrickm129
1

Hello,

It is all in the redirects you use. > writes over the file if there is one and >> appends to the file.

echo "second line of code" >> \test.bat

0

Thank You Very much!

Hello,

It is all in the redirects you use. > writes over the file if there is one and >> appends to the file.

echo "second line of code" >> \test.bat

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.