Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assgn file property attribute to copy or rename
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01433775
Message ID:
01433776
Vues:
75
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform