DOS Tricks: Creating File From DOS / CMD Command Line…
By Angsuman Chakraborty, Gaea News NetworkSunday, April 20, 2008
There is an old trick from Dos days (still valid in all windows under cmd prompt or even command.com) when we wanted to create a quick file without loading up edit (edit.com) was to use copy con. The exact syntax is:
copy con filename
Subsequent lines you type are copied to the file. You could end the content by pressing Ctrl-Z and then pressing Enter.
Good old days
My other favorite trick was marking directories as hidden and system so others couldn’t access it, especially useful in shared computers.
What are your favorite DOS tricks?
September 15, 2009: 3:36 am
I have so many… visit my website… but my favorite is using the Attrib command to find files. cd\ to the root and run Echo bla bla bla > filename.txt dir *.exe > filename.txt xcopy /? > filename.txt Even more useful to capture the guid nmbers identifier of a partition when setting up VHD’s bcdedit > filenae.txt …or load it into notepad. Ok boys and girls.. thats our lesson for today. Tomorrow I’ll teach you how to play spades. |
Terry