Prevent file name printing on created text

February 15, 2011 at 08:14:41
Specs: Windows XP
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


See More: Prevent file name printing on created text

Report •


#1
February 15, 2011 at 08:33:57
Findstr "string of text" Source.txt | find /v "------" >> EndFile.txt
Findstr "String of text" Source2.txt | find /v "------" >> Endfile.txt


Report •

#2
February 15, 2011 at 08:37:55
Perfect. Thanks a million!!!

Report •

Related Solutions


Ask Question