Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Marking a file readonly.
Message
 
To
21/04/2000 10:02:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00362222
Message ID:
00362226
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform