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