Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Readonly
Message
De
12/11/2002 16:13:18
 
 
À
12/11/2002 16:09:23
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00721811
Message ID:
00721816
Vues:
8
>All,
>
> Is there a way to make an entire folder readonly with VFP?

You can use either the WSH Scripting.FileSystemObject to modify the attributes of the folder and its files, or call the Win32 API function SetFileAttributes() to do this - there are examples of modifying the attributes of a file or folder in the 5 part WSH article that george Tasker and I wrote, as well as a FAQ showing how to call SetFileAttributes() (you'll also need to use GetFileAttributes()).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform