Bat file to copy a file

A

Ayush

copy xxx.xxx zzz.zzz /y

Copy command<space>source file<space>destination<space>y switch
 
G

Guest

Using WinXP Pro.
How can I write a batch file to copy a file from a one drive to another?
The file's "Read-only" attribute is set. I'd like to overwright any existing
file of the same name in the destination.
Thank you.
 
G

GreenieLeBrun

Dave said:
Using WinXP Pro.
How can I write a batch file to copy a file from a one drive to another?
The file's "Read-only" attribute is set. I'd like to overwright any existing
file of the same name in the destination.
Thank you.

Use the attrib command to reset the Read Only attribute.

Type attrib /? in a command prompt window to see the various switches
available.
 
J

John John

Use xcopy. For help on the command use the /? switch at the command
prompt, example:

xcopy /?

John
 

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