Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying hidden files
Message
De
07/03/2001 18:11:05
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Copying hidden files
Divers
Thread ID:
00482939
Message ID:
00482939
Vues:
46
hi all,
i am having a few problems copying some files from one directory to another. i am looping through all files in a directory and using the copy file command to copy it to the new directory.
the problem occurs when it comes to copying the hidden file. it gives an error saying the file doesn't exist.
this is the line that gets all the files in the directory in to the array:
adir(arrfile,"*",'RHS')

so the array holds the values for any readonly, hidden or system files, but the copy file command doesn't seem to be able to handle it.
i can't set the attributes to normal either using:
SetFileAttributes(dirpath, 0)

as the source directory is on a CD.
what can i do??

Jordan
Jordan Pastourel
Development Manager
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform