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
 
Back
Top