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, ∼3754🔥, 0💬
Popular Posts:
How to download Windows 7 Service Pack 1 (SP1)? Windows 7 Service Pack 1 (SP1) is an update for all ...
How to download ActivePerl 5.8.8.820? If you are interested in using Perl on your Windows system, yo...
How do I move the licenses for the songs that I purchased from an online store to my new computer? T...
How to select system language during the Windows 7 initial set up process? If you bought your comput...
Where to find tutorials on using Windows Server 2012? I want to learn how to use Windows Server 2012...