prevent file name from printing on new text file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Ilneval
Posts: 7
Joined: 14 Feb 2011 11:33

prevent file name from printing on new text file

#1 Post by Ilneval » 15 Feb 2011 10:06

I need to know how to prevent the file name from printing at the top of a new text file.

For example, I am using a very simple batch.

Findstr "string of text" Source.txt>>EndFile.txt
Findstr "String of text" Source2.txt>>Endfile.txt

When I view the output, I see the following

-----------Source.txt
Text copied from Source document
-----------Source2.txt
Final text from Source 2 document


How do I prevent it from printing ---------Source.txt and ----------Source2.txt

I know this should be simple

Ilneval
Posts: 7
Joined: 14 Feb 2011 11:33

Re: prevent file name from printing on new text file

#2 Post by Ilneval » 15 Feb 2011 10:38

Just figured it out. Sorry to bother anyone

Post Reply