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