Windows 10

Batch File To Create a Text File

In this tutorial, we are going to see how to create a text file by using ECHO. The batch file contains a series of DOS (Disk Operating System) instructions. It allows triggering the execution of commands found in this file.
 

Batch File To Create a Text File

The following example create a new text file called “filename.txt”:

@echo off

@echo>"C:\Users\filename.txt"

Leave a Reply

Your email address will not be published. Required fields are marked *