Use CON to Display Data on Screen

Q

How to use CON file name to display data on the screen?

✍: FYIcenter.com

A

Since CON is a special file name referring to the console including screen, you can use it display data on the screen.

You can use the "copy * con" to act like the "type *" command:

C:\fyicenter>copy random.bat con
@echo %random%
        1 file(s) copied.

 

Windows Command Examples

Use CON to Enter Data to File

File Name and File Path

⇑⇑ Windows Batch File Tutorials

2017-12-05, 141👍, 0💬