hello,
how can i set a file in run-time, to be read only when the user open it?
thanks,
ohad
Printable View
hello,
how can i set a file in run-time, to be read only when the user open it?
thanks,
ohad
You can change the attribute to read-only
SetAttr(file)=1
Constant Value Description
vbNormal 0 Normal.
vbReadOnly 1 Read-only.
vbHidden 2 Hidden.
vbSystem 4 System file.
vbDirectory 16 Directory or folder.
vbArchive 32 File has changed since last backup.
To protect from copying your files after installation of the executable file change attrib to anything but 32.
IF file has been copied then attrib will automaticaly will be 32 (default of copy command).
Iouri Boutchkine
[email protected]