write into cmd using bat file code example Example: create file and write to it cmd echo some-text > filename.txt