copy con: out.txt

J

Jean Pierre Daviau

Hi administrators'guru,

What is the meaning of the colons in

copy con: out.txt

I know it creates a file.txt
I know it copies it to the screen and that Ctr; +z terminates the file.

How could I write that another way?



--
Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8 with Apache1.3.24
Server version: Apache/2.0.55
Server built: Oct 9 2005 19:16:56
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
http://www.jeanpierredaviau.com
 
M

Mark V

In microsoft.public.win2000.cmdprompt.admin Jean Pierre Daviau
wrote:
Hi administrators'guru,

What is the meaning of the colons in

copy con: out.txt

I know it creates a file.txt
I know it copies it to the screen and that Ctr; +z terminates
the file.

How could I write that another way?

copy con out.txt
<g>

What are you trying to accomplish?
What OS?
 
D

David Trimboli

Jean Pierre Daviau said:
Hi administrators'guru,

What is the meaning of the colons in

copy con: out.txt

I know it creates a file.txt
I know it copies it to the screen and that Ctr; +z terminates the
file.

How could I write that another way?

The colons were once required on all device names.

You still use them for drive letter names: C:, D:, etc.

They're now optional for other devices:
AUX:
AUX

CON:
CON

LPT1:
LPT1

PRN:
PRN

etc.

David
Stardate 6532.1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

special characters 18
french characters 9
command line VS cmd file 3
pushd 4
FC 3
setting screen in ansi on the fly 1
mkdir %_folder% 1
for /d %I in ("%USERPROFILE%\Cookie\*jeanpierredaviau*.txt") do @echo %I 1

Top