cmd touch code example
Example 1: touch command
touch test.txt
// this creates a file called test.txt
Example 2: touch commend in cmd
// create files using command in command prompt ..
echo > sample.txt
Example 3: touch command in windows
ECHO text>file1.txt
Example 4: touch command in windows
type nul > .gitignore ---This creates empty file and works on windows 10.
Example 5: touch command not recognized in windows
echo.> your_file.txt