Computing.Net > Forums > Disk Operating System > What does copy CON mean?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

What does copy CON mean?

Reply to Message Icon

Name: DOSNewbieDude
Date: January 22, 2005 at 18:10:39 Pacific
OS: DOS 7.10
CPU/Ram: Intel Pentium II, 512 MB
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: jboy
Date: January 22, 2005 at 18:28:20 Pacific
Reply:

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?


0

Response Number 2
Name: DOSNewbieDude
Date: January 22, 2005 at 19:37:14 Pacific
Reply:

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

Thanks jboy.


0

Response Number 3
Name: jboy
Date: January 22, 2005 at 19:44:19 Pacific
Reply:

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?


0

Response Number 4
Name: Mechanix2Go
Date: January 22, 2005 at 20:27:45 Pacific
Reply:

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


0

Response Number 5
Name: jboy
Date: January 22, 2005 at 20:39:17 Pacific
Reply:

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?


0

Related Posts

See More



Response Number 6
Name: Nigel Spike
Date: January 23, 2005 at 08:23:13 Pacific
Reply:

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


0

Response Number 7
Name: Arcosanti
Date: February 15, 2005 at 16:07:47 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: What does copy CON mean?

DOS errorlevels - what do they mean? www.computing.net/answers/dos/dos-errorlevels-what-do-they-mean/773.html

What does the % mean in batch files? www.computing.net/answers/dos/what-does-the-mean-in-batch-files/5925.html

What does HTH mean? www.computing.net/answers/dos/what-does-hth-mean/9412.html