How to copy text from a text file then write it in a batch
i have created batch files ,now i want to copy text from a text file then write that text in batch file using c# ,any solutions
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Manikandan MurugesanRank #300 · 8.4K reputationPosted Jul 17, 2017, 4:44 PM EDT
echo, and redirect the output to a text file (see notes below):Notes:
@echo offturns off printing of each command to the console@at the beginning of the remaining lines stops printing of theechocommand itself, but does not suppressechooutput. (It allows the rest of the line after@echoto display.>or>>will write to the current directory (the directory the code is being run in).@echo This is a test > test.txtuses one>to overwrite any file that already exists with new content.@echostatements use two>>characters to append to the text file (add to), instead of overwriting it.type test.txtsimply types the file output to the command window.