Use CON to Display Data on Screen


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



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

2021-04-02, 1753🔥, 0💬