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, 2660🔥, 0💬
Popular Posts:
What is "Application Information" in my Windows XP service list? And how is "Application Information...
What is the difference between a Web page and a filtered Web page? Word 2007 supports 2 Web page for...
Pl help me.. Hi.. how to run a php script in windows xp ...? First, you need to download and install...
What is "Net.Pipe Listener Adapter" in my Windows 7 service list? And how is "Net.Pipe Listener Adap...
What is "WWAN AutoConfig" in my Windows 7 service list? And how is "WWAN AutoConfig" service related...