echoing to text file code example Example: cli echo to file echo hello world > %userprofile%\Desktop\hello_world.txt