Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying hidden files
Message
From
07/03/2001 18:11:05
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Copying hidden files
Miscellaneous
Thread ID:
00482939
Message ID:
00482939
Views:
47
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
Next
Reply
Map
View

Click here to load this message in the networking platform