Bat file to copy a file

  • Thread starter Thread starter Ayush
  • Start date Start date
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.
 
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.
 
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

Back
Top