create file in directory cmd code example
Example 1: create file and write to it cmd
echo some-text > filename.txt
Example 2: how to create files in command line
notepad mynewfile.*insert file extension here*
echo some-text > filename.txt
notepad mynewfile.*insert file extension here*