>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