About 1,020,000 results
Open links in new tab
  1. How can I create an empty file at the command line in Windows?

    673 How can I create an empty file at the DOS/Windows command-line? I tried: copy nul > file.txt But it always displays that a file was copied. Is there another method in the standard cmd? It …

  2. How can I create a .txt file on CMD? - Stack Overflow

    Jun 18, 2017 · 7 Does someone knows how to create a file .txt on CMD?, I need like an order or steps to create it; I see that i need to write {echo "text"> "name".txt} but, i mean the content …

  3. cmd - How to create empty text file from a batch file? - Stack …

    Oct 17, 2008 · Can somebody remember what was the command to create an empty file in MSDOS using BAT file?

  4. Create text file using echo in command prompt - Stack Overflow

    Jun 10, 2015 · I'm creating a hello_world.txt in the desktop using echo in command prompt and this is my input. echo hello world > C:\\Users\\user\\Desktop\\hello_world.txt The first code …

  5. How can I use a batch file to write to a text file? - Stack Overflow

    Nov 9, 2013 · I need to make a script that can write one line of text to a text file in the same directory as the batch file.

  6. Create an empty file on the commandline in windows (like the …

    An easy way to replace the touch command on a windows command line like cmd would be: type nul > your_file.txt This will create 0 bytes in the your_file.txt file. This would also be a good …

  7. CMD: Export all the screen content to a text file

    Jun 11, 2013 · In command prompt - How do I export all the content of the screen to a text file (basically a copy command, just not by using right-clicking and the clipboard) This command …

  8. Create a txt file using batch file in a specific folder

    I am trying to create a batch file which will create a text file in a specific folder. I am able to create a text file on my desktop, but I need to create a file in a specific file path. For examp...

  9. How can I make a text file in git-bash? - Stack Overflow

    Mar 11, 2015 · 6 You can use the echo command. Enter the following line into your command prompt to create a new file with the required content: echo "Put any content here" >> …

  10. How do I display a text file content in CMD? - Stack Overflow

    Jun 20, 2013 · I want to display the content of a text file in a CMD window. In addition, I want to see the new lines that added to file, like tail -f command in Unix.