Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assgn file property attribute to copy or rename
Message
 
 
To
08/11/2009 15:26:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01433775
Message ID:
01433776
Views:
74
This message has been marked as the solution to the initial question of the thread.
>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.

Check also http://berezniker.com/content/pages/visual-foxpro/copy-move-rename-file-preserving-destination-name-case
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform