Copy con


lightbulb

Copy con

Copy con is a DOS command that creates a new text file (or overwrites an existing one) with text entered from the console. It allows users to quickly generate text files without using external editors.

What does Copy con mean?

Copy con is a Command in MS-DOS and Windows operating systems that allows users to create a new text file by Copying its contents from the Standard input. The command is typically used to create a file without having to open a text editor.

To use the Copy con command, the user simply types the command followed by the name of the file they wish to create. For example, to create a file called “myfile.txt”, the user would type the following command:

copy con myfile.txt

Once the user presses Enter, the system will prompt them to enter the contents of the file. The user can then type the text they wish to include in the file. When they have finished, they can press Ctrl+Z to save the file and Exit the Copy con command.

Applications

Copy con is a simple but powerful command that can be used for a variety of tasks, including:

  • Creating new text files
  • Editing existing text files
  • Copying text from one file to another
  • Redirecting output from a command to a file

Copy con is particularly useful for creating batch files, which are text files that contain a series of commands that can be executed automatically. Batch files can be used to automate a variety of tasks, such as copying files, Deleting files, and running programs.

History

Copy con was first introduced in MS-DOS version 2.0 in 1983. The command has remained largely unchanged since then, and it is still available in Windows 10.

The Copy con command is a valuable tool for anyone who works with text files. It is a simple and efficient way to create, edit, and copy text files.