Articles

What does copy CON mean?

January 22, 2005 at 18:10:39
Specs: DOS 7.10, Intel Pentium II, 512 MB

Ok I have 2 beginner DOS type questions.
1. What does the following command do?

copy config.sys con

2. When booting up DOS from a floppy, is the autoexec.bat file the 1st thing executed (even before executing config.sys) and if so can I add someting in the autoexec file that will print out to the screen every single thing that is occuring up until the OS presents the DOS prompt? (ok that was 3 questions)

Thanks


See More: What does copy CON mean?

Report •


#1
January 22, 2005 at 18:28:20

Copy con is an archaic method of creating a text file. DOS Edit is much better - especially the version in Win9x.

Autoexec.bat is the last thing that runs from a normal DOS boot - here's the typical sequence of events

The rest is up to you - Google can be helpful


I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?


Report •

#2
January 22, 2005 at 19:37:14

Excellent! That's exactly what I was looking for. Now I'm armed AND dangerous :-)

Thanks jboy.


Report •

#3
January 22, 2005 at 19:44:19

I would tend to agree

Copy con can be useful if you're stuck without a proper editor (or the hideous Edlin) but the standalone Ed.com from Win95 is preferred.

Instead of messing about with bootdisks, you might try using the multi-config feature introduced in DOS6.

An indispensable tool for learning DOS syntax is the DOS6 Help/Qbasic application


I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?


Report •

Related Solutions

#4
January 22, 2005 at 20:27:45

DOSnew, jboy,

Correct, copy con can be used to create a file without a real editor.

As in copy con my.txt

The line NEW posted:

copy config.sys con

"puts the file on screen"

so you can see it without a real viewer.

HTH

M2


Report •

#5
January 22, 2005 at 20:39:17

Sure - that was nagging at me: "copy to console" - you can also use type or more (if present)

Still, they're old conventions, and usually there are better options

I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?


Report •

#6
January 23, 2005 at 08:23:13

Just to add some more. CON: is a reserved input/output device like for example A: or C: You can copy files to and from it. The input part is the keyboard and the output part is the screen.

Nigel


Report •

#7
February 15, 2005 at 16:07:47

I still use the copy con whatever.bat method if I'm going to make a small batch file. If you do ever use that method to make a text file in DOS be sure to type ^Z and return as the last line so it will be saved to disk.

Report •


Ask Question