Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Marking a file readonly.
Message
 
À
21/04/2000 10:02:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00362222
Message ID:
00362226
Vues:
13
>Hi everyone,
>Is there a function either in vfp or win32 to mark a text
>file readonly on a network(Novell).
>Thanks
>Eric

From a previous post response:

You can call the API as shown in the Frequently Asked Questions, or using Scripting.FileSystemObject to grab a file object and set the attribute:

oFSO=CREATEOBJ('Scripting.FileSystem')
oFile = oFSO.GetFile('C:\MyFile\That I want to set\as.read.only')
#DEFINE READONLY 1
oFile.Attributes = BITOR(oFile.Attributes,READONLY)
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform