XCOPY command

V

Vadim Teverovsky

I have an old application which is using XCOPY to copy
files and folders.
I have tried to figure out how XCOPY works on Win2000, and
It seems that if a directory is marked read-only, xcopy
will still copy a file into it, even with no flags set. Is
this expected/desired behavior? I would expect it to not
do that.
 
T

Tony Gaston [MSFT]

I have an old application which is using XCOPY to copy
files and folders.
I have tried to figure out how XCOPY works on Win2000, and
It seems that if a directory is marked read-only, xcopy
will still copy a file into it, even with no flags set. Is
this expected/desired behavior? I would expect it to not
do that.

Yes, expected behavior.
the read only bit on a folder is an indication to Explorer.
Everything else ignores the readonly bit on a folder.

Unable to Remove Read-Only Attribute from Folder WGID:323
ID: 256614.KB.EN-US CREATED: 2000-03-07 MODIFIED: 2003-06-03
http://support.microsoft.com/?id=256614

hth

tony

Please post all replys to group.


This posting is provided "AS IS" with no warranties, and confers no rights
 

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