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