N
N
nonameme2017-02-05 10:52:40
cmd/bat
nonameme, 2017-02-05 10:52:40

How to open a text document in a bat file and write something in it?

Hello, how to open a text document in a bat file? but, so that the file opens in the batch file (cmd) file itself.
not a document.
just how to make it so that you can also write something in it, as on the screen?
image.png
Will be glad if you help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-02-05
@nonameme

create a text document with the string "Hello world!!!"
Create or add a line to the end of the file:
This is redirecting output to a file.
You can view the contents of a text file like this:
more C:\new.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question