touch in windows command code example Example 1: command touch in window type nul > your_file.txt Example 2: touch command not recognized in windows echo.> your_file.txt