Write something down in a .txt

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
f1s1ck
Posts: 5
Joined: 08 Oct 2011 05:48

Write something down in a .txt

#1 Post by f1s1ck » 09 Oct 2011 00:41

Hello,

I want to let my .bat script put down some text in results.txt
Can anybody help me?

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Write something down in a .txt

#2 Post by !k » 09 Oct 2011 01:18

Code: Select all

[command] >> [file]

use >> for add
and > for rewrite

Code: Select all

[command] > [file]

f1s1ck
Posts: 5
Joined: 08 Oct 2011 05:48

Re: Write something down in a .txt

#3 Post by f1s1ck » 09 Oct 2011 02:39

It creates a .txt file now,
Now i want to let the program write text in it.

Post Reply