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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manikandan MurugesanPosted Jul 17, 2017, 8:44 PM
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.