How to XCOPY all files in a directory tree which are writeable?

R

Rod Newton

I want to copy all files which are writable from one directory tree to another with XCOPY.

How do I do this? I have not seen an option flag which filters out readonly files.

If the target directory does not exist it should be created by XCOPY

Rod
 
R

Rodney

Rod said:
I want to copy all files which are writable from one directory tree to another with XCOPY.

How do I do this? I have not seen an option flag which filters out readonly files.

If the target directory does not exist it should be created by XCOPY

Rod

Doesn't xcopy only copy read only files and hidden and system files if
you add the switch to do so? So, wouldn't it by default do what you
desire? Maybe I misunderstand what you are trying to do.

Rodney
 
E

EC

I think robocopy will do this with the parameter below:

/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.
 
R

Roger Blake

I want to copy all files which are writable from one directory tree to another with XCOPY.

How do I do this? I have not seen an option flag which filters out readonly files.

See http://www.xxcopy.com. (XXCOPY has something like 200 command-line
options, including seclection by attributes. For your specific application,
see the "/AX" switch in the XXCOPY docs.)
 

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