|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
|
I am trying to compile a small program that will open a text file and edit it and them close it
I am doing all of this in dos and I am wanting to build a batch file to do so I just cant figure out how to make it edit the file |
|
|
|
|
|
#2 |
|
SQL nutcase
|
What do you mean with edit?
If you mean append, you can use Code:
type some text to append >>test.txt |
|
|
|
|
|
#3 |
|
Member (8 bit)
|
I am using this to learn some basic commands in dos
I am trying to open a text file and edit it all in one batch file
like open a text file and tell it to add somde text to the file and the close it is there any way of doing this |
|
|
|
|
|
#4 |
|
SQL nutcase
|
the command posted above does this.
when you make a batch file with: Code:
@echo off type blablabla >>test.txt type blablabla >>test.txt If you want for example the directory listing in a file you can use Code:
@echo off dir >> test.txt 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] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|