Re: copy command and COPYCMD

M

Michael Bednarek

I have a client using windows 2000 and they want to copy
files using dos mode(go figure. So she drops to the
command prompt and when she copies files to a floppy, it
does not prompt for overwrites. I have researched that
and found that the COPYCMD can be set to COPYCMD=COPY /-Y
and this should make her happy. But I cannot get it to
work.
[snip]

I don't use Microsoft's free sample command line interpreter (CMD.EXE) a
lot myself, but reading the output of "COPY /?" suggests to me that the
environment variable COPYCMD should be set to "/-Y", not "COPY /-Y".
However, this seems to be the default behaviour anyway when COPY is
executed from the command line, so I'm a bit puzzled why CMD doesn't
prompt her.

Alternatively, you could try to press DOSKEY into your service.
 
M

Mark V

Michael Bednarek wrote in
I have a client using windows 2000 and they want to copy
files using dos mode(go figure. So she drops to the
command prompt and when she copies files to a floppy, it
does not prompt for overwrites. I have researched that
and found that the COPYCMD can be set to COPYCMD=COPY /-Y
and this should make her happy. But I cannot get it to
work.
[snip]

I don't use Microsoft's free sample command line interpreter
(CMD.EXE) a lot myself, but reading the output of "COPY /?"
suggests to me that the environment variable COPYCMD should be set
to "/-Y", not "COPY /-Y". However, this seems to be the default
behaviour anyway when COPY is executed from the command line, so
I'm a bit puzzled why CMD doesn't prompt her.

Yes. correct. set COPYCMD=/Y or
set COPYCMD=/-Y
The data stored in the environment variable named COPYCMD
is the same as used one-off at the command line as a switch for the
COPY command. The OP would be ineffective if seting
COPYCMD=COPY /-Y
 

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

Top