FILE COPY????

M

mike

i cant figure out for the life of me how to copy a file
from one place to another. the file is in c:\dir\t.exe
trying to copy to c:\document and settings\all
users\desktop

try to use the command copy c:\dir\t.exe c:\document and
settings\all users\desktop

what is it that i am missing? i really feel like an idot
asking this question, but it is really bugging me. help,
help, help. thanks for any advice or help

COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]

source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for
the new file(s).
/V Verifies that new files are written
correctly.
/N Uses short filename, if available, when
copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to
overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to
overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment
variable.
This may be overridden with /-Y on the command line.
Default is
to prompt on overwrites unless COPY command is being
executed from
within a batch script.

To append files, specify a single file for destination,
but multiple files
for source (using wildcards or file1+file2+file3 format).
 
W

Wadester

In
mike said:
i cant figure out for the life of me how to copy a file
from one place to another. the file is in c:\dir\t.exe
trying to copy to c:\document and settings\all
users\desktop

try to use the command copy c:\dir\t.exe c:\document and
settings\all users\desktop

what is it that i am missing? i really feel like an idot
asking this question, but it is really bugging me. help,
help, help. thanks for any advice or help

You didn't mention the error you were getting, but have you tried using
quotes around the long dirctory names?

copy c:\dir\t.exe "c:\document and settings\all users\desktop"

ws
 
D

David Trimboli

When file names or paths contain spaces, you must enclose the entire thing
in quotation marks.

copy c:\dir\t.exe "c:\documents and settings\all users\desktop"

David
Stardate 3898.1
 
M

Matthias Tacke

mike said:
i cant figure out for the life of me how to copy a file
from one place to another. the file is in c:\dir\t.exe
trying to copy to c:\document and settings\all
users\desktop

try to use the command copy c:\dir\t.exe c:\document and
settings\all users\desktop

copy c:\dir\t.exe "c:\document and settings\all users\desktop"

or

pushd c:\document and settings\all users\desktop
copy c:\dir\t.exe

hth
 

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