how to write in text file using cmd code example Example: write file using command windows echo some-text > filename.txt