Collections:
Other Resources:
Use CON to Enter Data to File
How to use CON file name to enter data to a file quickly? I don't want to use any editors.
✍: FYIcenter.com
Since CON is a special file name referring to the console including keyboard, you can use it with the "copy" command to enter data to a file.
For example, if you want to create small batch file called "random.bat" with one line of command, you can try the following:
C:\fyicenter>copy con random.bat @echo %random% ^Z 1 file(s) copied.
Note that Ctrl-Z was pressed to terminate the input from keyboard.
Now you can the "random.bat" batch file to generate random numbers:
C:\fyicenter>random.bat 11799 C:\fyicenter>random 4390 C:\fyicenter>random 31390
⇒ Use CON to Display Data on Screen
2021-04-02, 2301🔥, 0💬
Popular Posts:
What are default background services on a Windows 7 Home Premium computer? If you are running a Wind...
What Is the VIDEO_TS Folder or Directory on a DVD-Video (Movie) Disc? On a DVD-Video disc, usually a...
What Is the VIDEO_TS Folder or Directory on a DVD-Video (Movie) Disc? On a DVD-Video disc, usually a...
What is a slide master? A slide master is a set of slide layouts defined to help you create differen...
What files are stored in the "C:\Users\<userid >\AppData\Local\M icrosoft\Windows\Tempor. ..