Create file in DOS edit/copy con
When working in DOS sometimes I have the need to quickly create a file. Normally I would type “edit test.txt” which would open test.txt if it exists or create it if it doesn’t exist. This works well if I need to edit an existing file or type a lot of data. Note: use the alt key to navigate the menu in “edit”


If I just need a quick file with only a few lines of text there is another method to quickly create a file. By typing “copy con test.txt”. It will then give a blank line to start typing the text that belongs in the file. Each time enter is hit it starts a new line and you will not be able to go back to the previous line. When you are finished typing the text hit CTRL+Z and hit enter. It will then create the file.

![[Ask]](http://brett.batie.com/wp-content/plugins/bookmarkify/ask.png)
![[del.icio.us]](http://brett.batie.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://brett.batie.com/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://brett.batie.com/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://brett.batie.com/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://brett.batie.com/wp-content/plugins/bookmarkify/linkedin.png)
![[MySpace]](http://brett.batie.com/wp-content/plugins/bookmarkify/myspace.png)
![[Reddit]](http://brett.batie.com/wp-content/plugins/bookmarkify/reddit.png)
![[Slashdot]](http://brett.batie.com/wp-content/plugins/bookmarkify/slashdot.png)
![[Sphere]](http://brett.batie.com/wp-content/plugins/bookmarkify/sphere.png)
![[StumbleUpon]](http://brett.batie.com/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://brett.batie.com/wp-content/plugins/bookmarkify/technorati.png)
![[Twitter]](http://brett.batie.com/wp-content/plugins/bookmarkify/twitter.png)
![[Windows Live]](http://brett.batie.com/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://brett.batie.com/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://brett.batie.com/wp-content/plugins/bookmarkify/email.png)

July 10th, 2008 at 1:51 am
Well .. was very helpful for me .. thanks.