![]() To create a file using copy con, use the syntax below: And, it then opens the new file in a text editor, where you can populate it with text. With it, you only need to give a name to your file initially. Unlike the echo command, which takes your input for the content of the file you’re creating at the outset, the copy con command takes a rather different approach. Type MyFile.txt Creating a File Using copy con Command Once you’ve created the file, verify that it has been created successfully by running: However, when used with the redirection operator (>), it doubles as a file creation command that creates a file out of your inputted text.įor creating a file using the echo command, open the Command Prompt and enter your command using the following syntax:įor example, if you want to create a text file named MyFile with This is sample text as its text and. The echo command displays messages you type into the CMD window. ![]() Read More Creating a File Using echo Command
0 Comments
Leave a Reply. |