ohadbp
August 16th, 2001, 04:29 AM
hello,
how can i set a file in run-time, to be read only when the user open it?
thanks,
ohad
how can i set a file in run-time, to be read only when the user open it?
thanks,
ohad
|
Click to See Complete Forum and Search --> : read only property ohadbp August 16th, 2001, 04:29 AM hello, how can i set a file in run-time, to be read only when the user open it? thanks, ohad Iouri August 16th, 2001, 07:12 AM 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 iouri@hotsheet.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |