>Is there a way to assign attributes to a file that is renamed or a file that is copied as per commands below. > >I would like to ensure the the 'read-only' attribute is not assigned in the process as seems to be the case when i apply these commands >lately. I have been using Sergey's code to change file attributes with success (http://www.berezniker.com/content/pages/visual-foxpro/how-change-file-attributes-programmatically) but woud like to nip this problem in the bud. This applies to zip files. > >rename file1.xzip to file2.zip >copy file sample1.xzip to sample.zip > >thanks > >k
If the original file was not read-only and the new directory is not read-only, copying file should not change file's attribute.