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