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