Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read only property

Status
Not open for further replies.

sggaunt

Programmer
Jul 4, 2001
8,620
GB
I have a folder into which I want to copy files automatically from another network location,
The folder is 'shared on the network',and 'allow network users to change my files' is selected.

The file copying process has worked in the past.

Recently the copy proccess has started to fail and reports 'cannot create "Filename"'.

On checking the 'read only' attribute of the folder is checked and grayed, if I uncheck the box it seems to work but on re-checking the attribute it is still checked and greyed, local copying into the folder works ok.




Steve: Delphi a feersum engin indeed.
 
The read-only attribute of the folder is irrelevant and means something special under XP (and cannot be changed):
The usual cause of your error is that there is a subfolder named exactly the same as the attempted filename.

You might consider this freeware utility for your chore: Syncback:
 
Thanks bncastner

Hmm Read the M$ info and attempted the attribute change from the command prompt, that diddnt remove the readonly either! and there is no folder with the required filename.
The oly thinhg I can think of is that I must have inadvertantly changed somthing on the custom tab.

Anyway I got around the problem by creating a new folder!
(done this before in fact)

I can't use the freeware utility as the program thats doing the copying is very specific in operation and written by myself!








Steve: Delphi a feersum engin indeed.
 
Explorer cannot accurately show the attributes of a folder.
If you reset using ATTRIB, check again with ATTRIB foldername to view the actual attributes set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top